Skip to content

Commit dd681f8

Browse files
ci: update actions dockerfile for release
1 parent 1491bf5 commit dd681f8

File tree

1 file changed

+3
-24
lines changed

1 file changed

+3
-24
lines changed

Dockerfile

+3-24
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,3 @@
1-
# Distroless runs python 3.9.2
2-
FROM python:3.9.2-slim as builder
3-
ADD Docker/builder/rootfs /
4-
ADD main.py /app/main.py
5-
ADD action.yml /app/action.yml
6-
7-
# We are installing a dependency here directly into our app source dir
8-
RUN pip install --target=/app -r /requirements.txt
9-
RUN cd /tmp && \
10-
apt-get update && \
11-
apt-get download $(apt-cache depends --recurse --no-recommends --no-suggests \
12-
--no-conflicts --no-breaks --no-replaces --no-enhances \
13-
--no-pre-depends git | grep -v libc | grep "^\w") libcurl3-gnutls && \
14-
mkdir /dpkg && \
15-
for deb in *.deb; do dpkg --extract $deb /dpkg || exit 10; done
16-
17-
# A distroless container image with Python and some basics like SSL certificates
18-
# https://github.com/GoogleContainerTools/distroless
19-
FROM gcr.io/distroless/python3:debug
20-
COPY --from=builder /app /app
21-
COPY --from=builder /dpkg /
22-
WORKDIR /app
23-
ENV PYTHONPATH /app
24-
CMD ["/app/main.py"]
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-cookiecutter:v1.2.0

0 commit comments

Comments
 (0)