louwjac commited on
Commit
3f952dc
·
1 Parent(s): ea1a4cb

Update Dockerfile

Browse files

1) change the order of the intro tour items in the front-end
2) moved the pip installs to the top of the docker file

Files changed (1) hide show
  1. Dockerfile +8 -4
Dockerfile CHANGED
@@ -1,6 +1,14 @@
1
  # Use the official Python 3.11.2 image
2
  FROM python:3.11.2
3
 
 
 
 
 
 
 
 
 
4
 
5
  # Set up a new user named "user" with user ID 1000
6
  RUN useradd -m -u 1000 user
@@ -16,8 +24,4 @@ WORKDIR $HOME/app
16
  RUN --mount=type=secret,id=GIT,mode=0444,required=true \
17
  git clone https://louwjac:$(cat /run/secrets/GIT)@github.com/louwjac/CycleGAN_demo.git $HOME/app
18
 
19
- # Install requirements.txt
20
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
21
-
22
-
23
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  # Use the official Python 3.11.2 image
2
  FROM python:3.11.2
3
 
4
+ # Set the working directory to /code
5
+ WORKDIR /code
6
+
7
+ # Copy the current directory contents into the container at /code
8
+ COPY ./requirements.txt /code/requirements.txt
9
+
10
+ # Install requirements.txt
11
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
12
 
13
  # Set up a new user named "user" with user ID 1000
14
  RUN useradd -m -u 1000 user
 
24
  RUN --mount=type=secret,id=GIT,mode=0444,required=true \
25
  git clone https://louwjac:$(cat /run/secrets/GIT)@github.com/louwjac/CycleGAN_demo.git $HOME/app
26
 
 
 
 
 
27
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]