forked from ajslater/codex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (37 loc) · 986 Bytes
/
Dockerfile
File metadata and controls
44 lines (37 loc) · 986 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
32
33
34
35
36
37
38
39
40
41
42
43
44
ARG BASE_VERSION
FROM ajslater/python-alpine:$BASE_VERSION AS codex-install
ARG PKG_VERSION
LABEL version python${BASE_VERSION}_codex-${PKG_VERSION}
RUN echo "**** install system wheel building packages ****" && \
apk add --no-cache \
bsd-compat-headers \
build-base \
libffi-dev \
libwebp-dev \
openssl-dev \
yaml-dev \
jpeg-dev \
zlib-dev
RUN pip3 install wheel
# TODO replace with:
# RUN pip3 install codex
COPY dist/*.whl /tmp/
RUN pip3 wheel /tmp/*.whl --wheel-dir=/wheels
FROM ajslater/python-alpine:$BASE_VERSION
LABEL version python${BASE_VERSION}_codex-${PKG_VERSION}
RUN echo "*** install system runtime packages ***" && \
apk add --no-cache \
libffi \
libwebp \
openssl \
yaml \
jpeg \
zlib \
unrar
RUN echo "*** install python wheels ***"
COPY --from=codex-install /wheels /wheels
RUN pip3 install --no-index --find-links=/wheels /wheels/codex*.whl
VOLUME /comics
VOLUME /config
EXPOSE 9810
CMD ["/usr/local/bin/codex"]