forked from COSCUP/COSCUP-Volunteer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-base-dev
More file actions
17 lines (16 loc) · 772 Bytes
/
Copy pathDockerfile-base-dev
File metadata and controls
17 lines (16 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.11.9-alpine3.20
WORKDIR /app
ADD pyproject.toml poetry.lock ./
ENV PATH="/root/.local/bin:${PATH}"
RUN \
apk update && apk upgrade && \
apk add --no-cache ca-certificates libmemcached-dev \
cairo-dev freetype-dev jpeg-dev libpng-dev zlib-dev && \
apk add --no-cache --virtual .build-deps curl cmake zlib-dev \
g++ make gcc musl-dev libffi-dev openssl-dev && \
curl -sSL https://install.python-poetry.org | python3 - && \
poetry install --with dev && \
apk del .build-deps && \
cd ~/.cache/ && \
find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete && \
rm -rf /var/cache/apk/* /var/lib/apk/* /etc/apk/cache/*