generated from jacobtomlinson/python-container-action
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update actions dockerfile for release
- Loading branch information
1 parent
bf7960c
commit 82f4b3e
Showing
1 changed file
with
3 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 |
---|---|---|
@@ -1,17 +1,3 @@ | ||
# Distroless runs python 3.9.2 | ||
FROM python:3.9.2-slim AS builder | ||
ADD Docker/builder/rootfs / | ||
ADD repo_manager /app/repo_manager | ||
ADD main.py /app/main.py | ||
WORKDIR /app | ||
|
||
# We are installing a dependency here directly into our app source dir | ||
RUN pip install --target=/app -r /requirements.txt | ||
|
||
# A distroless container image with Python and some basics like SSL certificates | ||
# https://github.com/GoogleContainerTools/distroless | ||
FROM gcr.io/distroless/python3 | ||
COPY --from=builder /app /app | ||
WORKDIR /app | ||
ENV PYTHONPATH /app | ||
CMD ["/app/main.py"] | ||
# This file is generated from Docker/ActionDockerfile.j2 as part of the release ci | ||
# Don't modify it directly | ||
FROM andrewthetechie/gha-repo-manager:v1.2.1 |