-
Notifications
You must be signed in to change notification settings - Fork 7
/
Containerfile
37 lines (30 loc) · 1.01 KB
/
Containerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
ARG PYTHON_VERSION=3.12
FROM python:${PYTHON_VERSION}-alpine
COPY requirements.txt /tmp/requirements.txt
# hadolint ignore=DL3018
RUN apk add --no-cache \
bash \
git \
openssh-keygen \
pwgen \
&& apk add --no-cache --virtual .build-deps \
build-base \
cargo \
libffi-dev \
openssl-dev \
python3-dev \
rust \
&& pip3 --no-cache-dir install --upgrade 'pip==24.3.1' \
&& pip3 --no-cache-dir install -r /tmp/requirements.txt \
&& apk del .build-deps \
&& mkdir /output
COPY . /data
WORKDIR /data
VOLUME ["/output"]
ENTRYPOINT ["/data/entrypoint.sh"]
LABEL "org.opencontainers.image.documentation"="https://osism.tech/docs/" \
"org.opencontainers.image.licenses"="ASL 2.0" \
"org.opencontainers.image.source"="https://github.com/osism/cfg-cookiecutter" \
"org.opencontainers.image.url"="https://quay.io/organization/osism" \
"org.opencontainers.image.vendor"="OSISM GmbH" \
"org.opencontainers.image.title"="cookiecutter"