TechDev commited on
Commit
6ceb8b4
verified
1 Parent(s): cbac855

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -6,9 +6,7 @@ RUN apt-get update && \
6
  RUN apt-get install -y wget unzip && apt-get update && apt-get install -y python3 python3-pip python3.12-venv
7
 
8
  ARG DRIVE_CODE
9
- RUN echo $DRIVE_CODE
10
- RUN wget -O code.zip "https://drive.google.com/uc?export=download&id="$DRIVE_CODE
11
- RUN unzip code.zip
12
 
13
 
14
  RUN useradd -ms /bin/bash appuser
@@ -18,7 +16,8 @@ RUN echo "appuser ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
18
  USER appuser
19
 
20
  WORKDIR /app
21
- COPY . /app
 
22
  RUN sudo chmod -R 777 /app
23
  RUN python3 -m venv venv
24
  RUN /bin/bash -c "source venv/bin/activate && pip3 install -r requirements.txt"
 
6
  RUN apt-get install -y wget unzip && apt-get update && apt-get install -y python3 python3-pip python3.12-venv
7
 
8
  ARG DRIVE_CODE
9
+ RUN wget -O -q code.zip "https://drive.google.com/uc?export=download&id="$DRIVE_CODE
 
 
10
 
11
 
12
  RUN useradd -ms /bin/bash appuser
 
16
  USER appuser
17
 
18
  WORKDIR /app
19
+ COPY code.zip /app
20
+ RUN unzip code.zip
21
  RUN sudo chmod -R 777 /app
22
  RUN python3 -m venv venv
23
  RUN /bin/bash -c "source venv/bin/activate && pip3 install -r requirements.txt"