-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
FROM python:3.12-slim as compiler | ||
FROM python:3.12-slim AS compiler | ||
LABEL authors="dtrai2" | ||
|
||
ENV PYTHONUNBUFFERED 1 | ||
ENV PYTHONUNBUFFERED=1 | ||
WORKDIR /home/app/ | ||
RUN python -m venv /opt/venv | ||
ENV PATH="/opt/venv/bin:$PATH" | ||
RUN pip install -U shiny-invoice | ||
|
||
FROM python:3.12-slim as runner | ||
FROM python:3.12-slim AS runner | ||
LABEL authors="dtrai2" | ||
|
||
WORKDIR /home/app/ | ||
COPY --from=compiler /opt/venv /opt/venv | ||
COPY shiny_invoice/templates/ /home/app/templates/ | ||
ENV PATH="/opt/venv/bin:$PATH" | ||
EXPOSE 8000 | ||
ENTRYPOINT ["shiny-invoice"] |