Skip to content

Commit e445a38

Browse files
committed
Docker COPY fix
1 parent 3ae36b4 commit e445a38

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,15 @@ FROM python:3.9-slim
1010

1111
WORKDIR /app
1212
COPY --from=builder /usr/local /usr/local
13-
COPY . .
13+
COPY app.py .
14+
COPY lib ./lib
15+
COPY static ./static
16+
COPY templates ./templates
17+
COPY requirements.txt .
1418

1519
ENV PORT=5000
20+
ENV PYTHONPATH=/app
1621

1722
EXPOSE 5000
1823

19-
CMD ["sh", "-c", "gunicorn --pythonpath /app --bind 0.0.0.0:$PORT app:app"]
24+
CMD ["python", "-m", "gunicorn", "--bind", "0.0.0.0:5000", "app:app"]

0 commit comments

Comments
 (0)