-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (26 loc) · 776 Bytes
/
Dockerfile
File metadata and controls
31 lines (26 loc) · 776 Bytes
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
# syntax = docker/dockerfile:1
# we need at least syntax version 1.3 for the cache mount. 1 will use the latest 1.x version syntax
# pull official base image
FROM python:3.12-alpine
# set work directory
WORKDIR /app
# set environment variables
ENV PYTHONUNBUFFERED=1 \
PYTHONPYCACHEPREFIX=/root/.cache/pycache/ \
PIP_DISABLE_PIP_VERISON_CHECK=ON \
PIP_DEFAULT_TIMEOUT=100
# install system dependencies
#RUN \
# --mount=type=cache,target=/var/cache \
# apk add \
# # mkdocs-multirepo-plugin requires this
# git=2.40.1-r0
# install dependencies
COPY requirements.txt .
# hadolint ignore=DL3042
RUN \
--mount=type=cache,target=/root/.cache \
pip install -r requirements.txt
#RUN \
# --mount=type=cache,target=/root/.cache \
# pip install poetry==1.5.1