changed dockerfile
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
@@ -1,13 +1,15 @@
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
FROM python:3.9-slim
|
3 |
|
4 |
-
# Set the working directory in the container
|
5 |
-
WORKDIR /usr/src/app
|
6 |
-
|
7 |
RUN useradd -m -u 1000 user
|
8 |
-
|
9 |
USER user
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
# Install any needed packages specified in requirements.txt
|
12 |
COPY --chown=user requirements.txt ./
|
13 |
RUN pip install -r requirements.txt
|
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
FROM python:3.9-slim
|
3 |
|
|
|
|
|
|
|
4 |
RUN useradd -m -u 1000 user
|
|
|
5 |
USER user
|
6 |
|
7 |
+
ENV HOME=/home/user \
|
8 |
+
PATH=/home/user/.local/bin:$PATH
|
9 |
+
|
10 |
+
# Set the working directory in the container
|
11 |
+
WORKDIR $HOME/src/app
|
12 |
+
|
13 |
# Install any needed packages specified in requirements.txt
|
14 |
COPY --chown=user requirements.txt ./
|
15 |
RUN pip install -r requirements.txt
|