Skip to content

Commit

Permalink
🐳 improve Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mcieno committed Jan 24, 2024
1 parent b381a3e commit 2ecec84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# syntax=docker/dockerfile:1
FROM python:3.12

COPY requirements.txt /
RUN pip install -r requirements.txt
RUN --mount=type=bind,source=requirements.txt,target=/tmp/requirements.txt \
pip install -r /tmp/requirements.txt

COPY main.py /
COPY jira-timesheet-pdf /

ENTRYPOINT ["python", "/main.py"]
ENTRYPOINT ["/jira-timesheet-pdf"]
CMD ["--help"]
File renamed without changes.

0 comments on commit 2ecec84

Please sign in to comment.