-
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.
Reverting to 3.10 Docker to support syntax etc - can't get distroless…
… to work
- Loading branch information
1 parent
e197469
commit d91788f
Showing
3 changed files
with
10 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.env | ||
action.yml | ||
dev-requirements.txt | ||
LICENSE | ||
mypy.ini | ||
.github |
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,19 +1,6 @@ | ||
FROM python:3-slim AS builder | ||
|
||
FROM python:3.10.14-slim-bullseye | ||
WORKDIR /app | ||
|
||
# Just dependencies to minimise rebuilds | ||
COPY requirements.txt . | ||
|
||
# We are installing a dependency here directly into our app source dir | ||
RUN pip install --target=/app -r requirements.txt | ||
|
||
RUN pip install -r requirements.txt | ||
ADD . /app | ||
|
||
# A distroless container image with Python and some basics like SSL certificates | ||
# https://github.com/GoogleContainerTools/distroless | ||
FROM gcr.io/distroless/python3-debian10 | ||
COPY --from=builder /app /app | ||
WORKDIR /app | ||
ENV PYTHONPATH /app | ||
CMD ["/app/main.py"] | ||
CMD ["python", "/app/main.py"] |
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