Update Dockerfile
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
FROM python:3.9-slim
|
| 2 |
-
WORKDIR
|
| 3 |
COPY requirements.txt ./requirements.txt
|
| 4 |
RUN apt-get update \
|
| 5 |
&& apt-get -y install libpq-dev gcc \
|
| 6 |
&& pip install psycopg2
|
| 7 |
# Install dependencies
|
| 8 |
RUN pip install -r requirements.txt
|
|
|
|
| 9 |
CMD ["python", "main.py"]
|
|
|
|
| 1 |
FROM python:3.9-slim
|
| 2 |
+
WORKDIR /app
|
| 3 |
COPY requirements.txt ./requirements.txt
|
| 4 |
RUN apt-get update \
|
| 5 |
&& apt-get -y install libpq-dev gcc \
|
| 6 |
&& pip install psycopg2
|
| 7 |
# Install dependencies
|
| 8 |
RUN pip install -r requirements.txt
|
| 9 |
+
COPY . /app
|
| 10 |
CMD ["python", "main.py"]
|