rahulreshma commited on
Commit
7fea9cb
·
verified ·
1 Parent(s): 114f594

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -22
Dockerfile CHANGED
@@ -4,25 +4,4 @@ RUN echo test
4
  RUN apt update && apt install -y python3 python3-pip python3-venv sudo htop
5
  USER root
6
  RUN echo $(whoami)
7
- CMD python3 -m http.server 7680
8
-
9
- RUN echo $(pwd)
10
- RUN ls -al
11
- WORKDIR /app
12
- RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
13
- && adduser user sudo \
14
- && chown -R user:user /app
15
- RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers
16
- COPY --chown=user . /app
17
- #RUN cd /app
18
- USER user
19
- RUN echo $(pwd)
20
- RUN ls -al
21
- RUN python3 -m venv test
22
- RUN ls -l test
23
- RUN $(pwd)/test/bin/pip install -r requirements.txt
24
-
25
- USER root
26
- RUN chmod +x start.sh
27
-
28
- CMD ["./start.sh"]
 
4
  RUN apt update && apt install -y python3 python3-pip python3-venv sudo htop
5
  USER root
6
  RUN echo $(whoami)
7
+ CMD python3 -m http.server 7680