Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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 /
|
6 |
|
7 |
RUN useradd -m -u 1000 user
|
8 |
USER user
|
9 |
|
10 |
-
RUN chown -R user:user /
|
11 |
|
12 |
# Copy the requirements to working directory
|
13 |
-
COPY --chown=user:user ./requirements.txt /
|
14 |
|
15 |
# Install all packages in requirements.txt
|
16 |
-
RUN pip install --no-cache-dir --upgrade -r /
|
17 |
|
18 |
-
COPY --chown=user:user . /
|
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 |
|