Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
@@ -5,11 +5,12 @@ FROM python:3.9
|
|
5 |
WORKDIR /code
|
6 |
|
7 |
# Copy the current directory contents into the container at /code
|
8 |
-
COPY
|
|
|
9 |
|
10 |
# Install requirements.txt
|
11 |
-
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
12 |
-
pip install --no-cache-dir --upgrade --force-reinstall gunicorn
|
13 |
|
14 |
# Set up a new user named "user" with user ID 1000
|
15 |
RUN useradd -m -u 1000 user
|
|
|
5 |
WORKDIR /code
|
6 |
|
7 |
# Copy the current directory contents into the container at /code
|
8 |
+
COPY . /code/
|
9 |
+
# COPY ./requirements.txt /code/requirements.txt
|
10 |
|
11 |
# Install requirements.txt
|
12 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
13 |
+
# pip install --no-cache-dir --upgrade --force-reinstall gunicorn
|
14 |
|
15 |
# Set up a new user named "user" with user ID 1000
|
16 |
RUN useradd -m -u 1000 user
|