Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
coolbeevip committed Nov 6, 2023
1 parent d4994d6 commit c916012
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,18 @@ WORKDIR /app
COPY pyproject.toml poetry.lock ./
COPY src/ ./src
COPY main.py ./
RUN touch README.md
RUN poetry install

FROM python:3.10-slim-buster as runtime

ENV VIRTUAL_ENV=/app/.venv \
PATH="/app/.venv/bin:$PATH"

WORKDIR /app

COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}
COPY --from=builder /app/src/ /app/src
COPY --from=builder /app/main.py /app/main.py

WORKDIR /app

ENTRYPOINT ["python", "main.py"]

0 comments on commit c916012

Please sign in to comment.