Skip to content

Commit

Permalink
ci: update actions dockerfile for release
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewthetechie authored and github-actions[bot] committed Aug 3, 2022
1 parent bf7960c commit 82f4b3e
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions Dockerfile
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

0 comments on commit 82f4b3e

Please sign in to comment.