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 271826b commit d736814
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ ENV POETRY_NO_INTERACTION=1 \
WORKDIR /app

COPY pyproject.toml poetry.lock ./
COPY src/ ./src
COPY main.py ./
RUN touch README.md

RUN poetry install
Expand All @@ -20,8 +22,7 @@ ENV VIRTUAL_ENV=/app/.venv \
PATH="/app/.venv/bin:$PATH"

COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}

COPY src/ ./src
COPY main.py ./
COPY --from=builder /app/src/ /app/src
COPY --from=builder /app/main.py /app/main.py

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

0 comments on commit d736814

Please sign in to comment.