Debian Codegraph @

Dockerfile

raw
1 FROM debian:buster
2
3 # Creates analizo user and group inside container
4 RUN useradd -ms /bin/bash analizo
5
6 # Set the working directory to /home/analizo
7 WORKDIR /home/analizo
8
9 # Copy the current directory contents into the container at /home/analizo
10 ADD . /home/analizo
11
12 # Install any needed packages running development-setup.sh script
13 RUN apt-get -y update && apt-get -y install sudo apt-utils && apt-get -y clean
14 RUN ./development-setup.sh
15
16 # Define analizo user as owner of all files under /home/analizo
17 RUN chown -R analizo:analizo /home/analizo
18
19 # Switch from root user to analizo user
20 USER analizo:analizo
21
22 # Add analizo bin to $PATH
23 ENV PATH $PATH:/home/analizo/bin
24
25 # By default show the analizo version
26 CMD ./bin/analizo --version