File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 1- # This file is generated from Docker/ActionDockerfile.j2 as part of the release ci
2- # Don't modify it directly
3- FROM andrewthetechie/gha-repo-manager:v1.2.0
1+ # Distroless runs python 3.9.2
2+ FROM python:3.9.2-slim AS builder
3+ ADD Docker/builder/rootfs /
4+ ADD repo_manager /app/repo_manager
5+ ADD main.py /app/main.py
6+ WORKDIR /app
7+
8+ # We are installing a dependency here directly into our app source dir
9+ RUN pip install --target=/app -r /requirements.txt
10+
11+ # A distroless container image with Python and some basics like SSL certificates
12+ # https://github.com/GoogleContainerTools/distroless
13+ FROM gcr.io/distroless/python3
14+ COPY --from=builder /app /app
15+ WORKDIR /app
16+ ENV PYTHONPATH /app
17+ CMD ["/app/main.py" ]
You can’t perform that action at this time.
0 commit comments