Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install both musl and glibc versions of swc/core for the NodeJS agent #291

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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