File tree 3 files changed +19
-29
lines changed
3 files changed +19
-29
lines changed Original file line number Diff line number Diff line change 68
68
- os : ubuntu-24.04
69
69
node_arch : arm64
70
70
cpp_arch : amd64_arm64
71
- distro : alpine_latest
71
+ distro : none
72
+ base_image : aminya/setup-cpp-alpine-gcc:3.21-1.4.0-arm64
72
73
native : false
73
74
74
75
env :
Original file line number Diff line number Diff line change 1
- FROM node:18- alpine AS builder
1
+ FROM aminya/setup-cpp- alpine-gcc:3.21-1.4.0-amd64 AS builder
2
2
3
3
WORKDIR /app
4
4
COPY ./ ./
5
5
ENV VCPKG_FORCE_SYSTEM_BINARIES=1
6
6
RUN \
7
7
# system dependencies
8
8
apk add --no-cache \
9
- bash \
10
- build-base \
11
- curl \
12
- git \
13
- g++ \
14
- make \
15
- ninja-build \
16
- pkgconfig \
17
- unzip \
18
- zip \
19
- python3 \
20
- tar \
21
- cmake \
22
- ninja \
23
- musl-dev \
24
9
automake \
25
10
autoconf \
26
11
libtool && \
27
- cp /usr/lib/ninja-build/bin/ninja /usr/bin/ninja && \
28
12
# build
29
13
npm i -g pnpm && \
30
14
pnpm install && \
31
15
pnpm run build
32
16
33
- FROM node:18-alpine
17
+ FROM node:alpine3.21
34
18
WORKDIR /app
35
19
36
20
COPY ./ ./
Original file line number Diff line number Diff line change 37
37
apk=$( command -v apk || true)
38
38
if [ -n " $apk " ]; then
39
39
apk update
40
- apk add --no-cache bash build-base curl git g++ make ninja-build pkgconfig unzip zip python3 tar cmake musl-dev automake autoconf libtool nodejs npm
41
- cp /usr/lib/ninja-build/bin/ninja /usr/bin/ninja
42
-
43
- # vcpkg
44
- export VCPKG_FORCE_SYSTEM_BINARIES=1
45
- git clone https://github.com/microsoft/vcpkg.git ~ /vcpkg
46
- cd ~ /vcpkg || exit 1
47
- git checkout " $VCPKG_COMMIT "
48
- ~ /vcpkg/bootstrap-vcpkg.sh
49
- cd - || exit 1
40
+
41
+ if [ -z " $( command -v setup-cpp || true) " ]; then
42
+ apk add --no-cache bash build-base curl git g++ make ninja-build pkgconfig unzip zip python3 tar cmake musl-dev nodejs npm
43
+ cp /usr/lib/ninja-build/bin/ninja /usr/bin/ninja
44
+
45
+ # vcpkg
46
+ export VCPKG_FORCE_SYSTEM_BINARIES=1
47
+ git clone https://github.com/microsoft/vcpkg.git ~ /vcpkg
48
+ cd ~ /vcpkg || exit 1
49
+ git checkout " $VCPKG_COMMIT "
50
+ ~ /vcpkg/bootstrap-vcpkg.sh
51
+ cd - || exit 1
52
+ fi
53
+
54
+ apk add --no-cache automake autoconf libtool
50
55
fi
51
56
52
57
# Fedora/RHEL
You can’t perform that action at this time.
0 commit comments