forked from ajslater/codex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuilder-base.Dockerfile
39 lines (37 loc) · 1.06 KB
/
builder-base.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
30
31
32
33
34
35
36
37
38
39
ARG CODEX_BASE_VERSION
# hadolint ignore=DL3007
FROM ajslater/codex-base:${CODEX_BASE_VERSION}
ARG CODEX_BUILDER_BASE_VERSION
LABEL maintainer="AJ Slater <[email protected]>"
LABEL version=${CODEX_BUILDER_BASE_VERSION}
WORKDIR /app
# **** install codex system build dependency packages ****"
# hadolint ignore=DL3018
RUN apk add --no-cache \
bash \
bsd-compat-headers \
build-base \
cargo \
git \
jpeg-dev \
libffi-dev \
libwebp-dev \
musl-dev \
npm \
openssl-dev \
python3-dev \
rust \
xapian-bindings-python3 \
xapian-core-dev \
yaml-dev \
zlib-dev
# https://github.com/pyca/cryptography/issues/6673#issuecomment-985943023
# old hash on this index was 1285ae84e5963aae
COPY builder-requirements.txt ./
# hadolint ignore=DL3013,DL3042,DL3059
#RUN git clone --bare --depth 1 \
# https://github.com/rust-lang/crates.io-index.git \
# /root/.cargo/registry/index/github.com-1ecc6299db9ec823 && \
# hadolint ignore=DL3013,DL3042
RUN pip3 install --no-cache --upgrade pip && \
pip3 install --no-cache --requirement builder-requirements.txt