File tree Expand file tree Collapse file tree 1 file changed +28
-4
lines changed Expand file tree Collapse file tree 1 file changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,32 @@ FROM rust:1-alpine3.20 AS base
4
4
ENV PATH=${PATH}:/usr/local/bin:/root/.local/bin
5
5
6
6
RUN apk update && apk add --no-cache \
7
- curl bash bzip2 git zip unzip make gawk \
8
- build-base python3 python3-dev py3-pip pkgconfig openssl-dev \
9
- nodejs npm openjdk21 \
7
+ bash \
8
+ bzip2 \
9
+ build-base \
10
+ curl \
11
+ gawk \
12
+ git \
13
+ make \
14
+ musl-dev \
15
+ nodejs \
16
+ npm \
17
+ openjdk21 \
18
+ openssl-dev \
19
+ pkgconfig \
20
+ py3-pip \
21
+ python3 \
22
+ python3-dev \
23
+ py3-virtualenv \
24
+ unzip \
25
+ zip \
26
+ libffi-dev \
27
+ gcc \
28
+ g++ \
29
+ && rustup target add x86_64-unknown-linux-musl \
10
30
&& npm install -g npm corepack \
31
+ && /usr/bin/python3 --version \
32
+ && /usr/bin/python3 -m pip install --no-cache-dir --upgrade atom-tools --target /opt/pypi \
11
33
&& node -v \
12
34
&& npm -v \
13
35
&& rustc --version \
@@ -38,9 +60,11 @@ ENV PATH=${PATH}:/usr/local/bin:${PYTHONPATH}/bin:/opt/cdxgen/node_modules/.bin
38
60
COPY . /opt/cdxgen
39
61
40
62
RUN cd /opt/cdxgen && corepack enable && corepack pnpm install --config.strict-dep-builds=true --prod --no-optional --package-import-method copy --frozen-lockfile && corepack pnpm cache delete \
63
+ && npm uninstall -g corepack \
64
+ && apk del npm python3-dev py3-pip py3-virtualenv gcc g++ musl-dev make build-base openssl-dev pkgconfig libffi-dev \
41
65
&& mkdir -p ${NODE_COMPILE_CACHE} \
42
66
&& node /opt/cdxgen/bin/cdxgen.js --help \
43
- && pip install --upgrade --no-cache-dir blint --target /opt/pypi --break-system-packages \
67
+ && atom-tools --help \
44
68
&& rm -rf /root/.cache/node \
45
69
&& chmod a-w -R /opt
46
70
WORKDIR /app
You can’t perform that action at this time.
0 commit comments