generated from ApeWorX/project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfile
29 lines (25 loc) · 887 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
#---------------------------------------------------------------------------------------------
# See LICENSE in the project root for license information.
#---------------------------------------------------------------------------------------------
# Build with builder image to reduce image size
ARG BASE_APE_IMAGE_TAG
FROM python:3.11 as builder
USER root
WORKDIR /wheels
COPY . .
# upgrade pip and install wheel
RUN pip install --upgrade pip && pip install wheel
# install silverback
RUN pip wheel . --wheel-dir=/wheels --no-deps
# Install from wheels
FROM ghcr.io/apeworx/ape:${BASE_APE_IMAGE_TAG:-latest}
USER root
COPY --from=builder /wheels/*.whl /wheels
RUN pip install --upgrade pip \
&& pip install \
--no-cache-dir --find-links=/wheels \
'taskiq-sqs>=0.0.11' \
'taskiq-redis>=1.0.2,<2' \
/wheels/silverback-*.whl
USER harambe
ENTRYPOINT ["silverback"]