Skip to content

Commit fb90eca

Browse files
ci: set dockerfile back for dev
1 parent 1b7186a commit fb90eca

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

Dockerfile

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
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"]

0 commit comments

Comments
 (0)