heyday1234 commited on
Commit
b36ea21
·
verified ·
1 Parent(s): d514980

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -2,20 +2,20 @@
2
  FROM python:3.10-slim-bullseye
3
 
4
  # Set the working directory to corrent folder
5
- WORKDIR /app
6
 
7
  RUN useradd -m -u 1000 user
8
  USER user
9
 
10
- RUN chown -R user:user /app
11
 
12
  # Copy the requirements to working directory
13
- COPY --chown=user:user ./requirements.txt /app/requirements.txt
14
 
15
  # Install all packages in requirements.txt
16
- RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
17
 
18
- COPY --chown=user:user . /app
19
 
20
  EXPOSE 7860
21
 
 
2
  FROM python:3.10-slim-bullseye
3
 
4
  # Set the working directory to corrent folder
5
+ WORKDIR /code
6
 
7
  RUN useradd -m -u 1000 user
8
  USER user
9
 
10
+ RUN chown -R user:user /code
11
 
12
  # Copy the requirements to working directory
13
+ COPY --chown=user:user ./requirements.txt /code/requirements.txt
14
 
15
  # Install all packages in requirements.txt
16
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
17
 
18
+ COPY --chown=user:user . /code
19
 
20
  EXPOSE 7860
21