-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (18 loc) · 781 Bytes
/
Dockerfile
File metadata and controls
26 lines (18 loc) · 781 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
FROM python:3.10-slim as base
FROM base as builder
RUN pip install -U pip wheel \
&& mkdir /app /wheelhouse
COPY requirements.txt /app/
COPY src /app/src
RUN cd /app/ && pip wheel -r requirements.txt --wheel-dir=/wheelhouse
FROM base
LABEL maintainer="Plone Community <dev@plone.org>" \
org.label-schema.name="code-quality" \
org.label-schema.description="Plone code quality tool" \
org.label-schema.vendor="Plone Foundation" \
org.label-schema.docker.cmd="docker run -rm -v "${PWD}":/github/workspace plone/code-quality check black src"
WORKDIR /github/workspace
ENTRYPOINT [ "/docker-entrypoint.py" ]
COPY docker-entrypoint.py /
COPY --from=builder /wheelhouse /wheelhouse
RUN pip install --force-reinstall --no-index --no-deps /wheelhouse/*