A-baoYang commited on
Commit
2d9a91e
1 Parent(s): e263f65

Edit Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -7
Dockerfile CHANGED
@@ -6,13 +6,6 @@ RUN apt-get update && \
6
  apt-get upgrade -y && \
7
  apt-get install -y git
8
 
9
- RUN --mount=type=secret,id=AutoCrawlerRepo,mode=0444,required=true \
10
- git clone $(cat /run/secrets/AutoCrawlerRepo)
11
-
12
- WORKDIR /code/autocrawler/
13
-
14
- RUN pip install --no-cache-dir --upgrade -r /code/autocrawler/requirements.txt
15
-
16
  # Set up a new user named "user" with user ID 1000
17
  RUN useradd -m -u 1000 user
18
 
@@ -29,6 +22,11 @@ WORKDIR $HOME/app
29
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
30
  COPY --chown=user . $HOME/app
31
 
 
 
 
 
 
32
  RUN ls
33
 
34
  CMD ["python", "app.py"]
 
6
  apt-get upgrade -y && \
7
  apt-get install -y git
8
 
 
 
 
 
 
 
 
9
  # Set up a new user named "user" with user ID 1000
10
  RUN useradd -m -u 1000 user
11
 
 
22
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
23
  COPY --chown=user . $HOME/app
24
 
25
+ RUN --mount=type=secret,id=AutoCrawlerRepo,mode=0444,required=true \
26
+ git clone $(cat /run/secrets/AutoCrawlerRepo)
27
+
28
+ RUN pip install --no-cache-dir --upgrade -r /code/autocrawler/requirements.txt
29
+
30
  RUN ls
31
 
32
  CMD ["python", "app.py"]