- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
|
4 |
FROM python:3.9
|
5 |
|
6 |
-
|
7 |
|
8 |
-
|
9 |
|
10 |
-
|
11 |
|
12 |
RUN useradd -m -u 1000 user
|
13 |
|
@@ -20,5 +20,5 @@ WORKDIR $HOME/app
|
|
20 |
|
21 |
COPY --chown=user . $HOME/app
|
22 |
|
23 |
-
|
24 |
-
|
|
|
3 |
|
4 |
FROM python:3.9
|
5 |
|
6 |
+
WORKDIR /code
|
7 |
|
8 |
+
COPY ./requirements.txt /code/requirements.txt
|
9 |
|
10 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
11 |
|
12 |
RUN useradd -m -u 1000 user
|
13 |
|
|
|
20 |
|
21 |
COPY --chown=user . $HOME/app
|
22 |
|
23 |
+
CMD ["pwd", ]
|
24 |
+
# CMD ["python", ".app.py",]
|