Skip to content

Commit

Permalink
Install both musl and glibc versions of swc/core
Browse files Browse the repository at this point in the history
  • Loading branch information
gamingrobot committed Apr 4, 2024
1 parent eea91f6 commit 9219343
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nodejs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# Contrast Security, Inc licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information.

FROM node:20.11.1-alpine AS builder
FROM node:lts-slim AS builder

ARG VERSION=4.18.0

RUN set -xe \
&& mkdir -p /contrast \
&& npm install --prefix /contrast @contrast/agent@${VERSION} \
&& npm install --prefix /contrast @swc/core@1.3.39 --libc=glibc \
&& npm install --prefix /contrast @swc/core@1.3.39 --libc=musl \
&& echo "{ \"version\": \"${VERSION}\" }" > /contrast/image-manifest.json

FROM busybox:stable AS final
Expand Down

0 comments on commit 9219343

Please sign in to comment.