Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
2-stage build
  • Loading branch information
DrRSatzteil authored Jan 6, 2024
1 parent 1fc2b74 commit fe5fe80
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions docker/web/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
FROM python:3
FROM python:3 as stage1

COPY docker/entrypoint.sh /entrypoint.sh
COPY docker/entrypoint.sh /app/entrypoint.sh
ADD mayanmindee /app/mayanmindee
COPY setup.py /app
COPY README.md /app
RUN mkdir /logs

RUN pip install --upgrade pip && python -m pip install /app

# Final image
FROM python:3

COPY --from=stage1 /app /app
RUN mkdir /logs

WORKDIR /app/mayanmindee
ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["/app/entrypoint.sh"]
CMD ["web"]

0 comments on commit fe5fe80

Please sign in to comment.