-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (30 loc) · 998 Bytes
/
Dockerfile
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
FROM python:3.12-slim-bullseye AS builder
# hadolint ignore=DL3008
RUN --mount=type=cache,target=/var/cache/apt \
set -eux; export DEBIAN_FRONTEND=noninteractive; \
apt-get update; \
apt-get install -y --no-install-recommends build-essential gcc
WORKDIR /build
COPY requirements.txt requirements.txt
# hadolint ignore=DL3042
RUN --mount=type=cache,target=~/.cache/pip \
pip install --user -r requirements.txt
FROM python:3.12-slim-bullseye
ENV PYTHONUNBUFFERED="1" \
DRY_RUN="false" \
CLEANUP="false" \
OS_AUTH_URL=https://auth.cloud.ovh.net/v3/ \
OS_IDENTITY_API_VERSION="3" \
OS_PASSWORD="" \
OS_PROJECT_DOMAIN_NAME=Default \
OS_PROJECT_ID="" \
OS_REGION_NAME=GRA5 \
OS_TENANT_ID="" \
OS_TENANT_NAME="" \
OS_USER_DOMAIN_NAME=Default \
OS_USERNAME="" \
OS_VOLUMES="" \
PATH=/root/.local/bin:$PATH
COPY --from=builder /root/.local /root/.local
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]