Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +10 -4
Dockerfile
CHANGED
@@ -6,13 +6,19 @@ USER user
|
|
6 |
|
7 |
WORKDIR /code
|
8 |
|
9 |
-
COPY ./requirements.txt /code/requirements.txt
|
10 |
-
|
11 |
RUN chown -R user:user /code
|
12 |
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
-
COPY --chown=user
|
16 |
|
17 |
#ENTRYPOINT ["gunicorn", "main:app"]
|
18 |
|
|
|
6 |
|
7 |
WORKDIR /code
|
8 |
|
|
|
|
|
9 |
RUN chown -R user:user /code
|
10 |
|
11 |
+
ENV HOME=/home/user
|
12 |
+
|
13 |
+
ENV PATH=/home/user/.local/bin:$PATH
|
14 |
+
|
15 |
+
WORKDIR $HOME/app
|
16 |
+
|
17 |
+
COPY ./requirements.txt ./
|
18 |
+
|
19 |
+
RUN pip install --no-cache-dir -r ./requirements.txt
|
20 |
|
21 |
+
COPY --chown=user . $HOME/app
|
22 |
|
23 |
#ENTRYPOINT ["gunicorn", "main:app"]
|
24 |
|