-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (27 loc) · 893 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
FROM python:3.12-slim-bullseye as builder
# hadolint ignore=DL3008
RUN 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"
ENV OS_AUTH_URL: https://auth.cloud.ovh.net/v3/
ENV OS_IDENTITY_API_VERSION: "3"
ENV OS_PASSWORD: ""
ENV OS_PROJECT_DOMAIN_NAME: Default
ENV OS_PROJECT_ID: ""
ENV OS_REGION_NAME: GRA5
ENV OS_TENANT_ID: ""
ENV OS_TENANT_NAME: ""
ENV OS_USER_DOMAIN_NAME: Default
ENV OS_USERNAME: ""
ENV OS_VOLUMES: ""
ENV PATH=/root/.local/bin:$PATH
COPY --from=builder /root/.local /root/.local
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]