-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78effaf
commit 21b0866
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
ARG UBUNTU_VERSION=bionic | ||
FROM ubuntu:${UBUNTU_VERSION} AS build | ||
|
||
ARG NODE_VERSION=16.20.1 | ||
# Possible values: s390x, arm64, x64 | ||
ARG NODE_ARCH | ||
ADD https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-${NODE_ARCH}.tar.gz / | ||
RUN mkdir -p /nodejs && tar -xzf /node-v${NODE_VERSION}-linux-${NODE_ARCH}.tar.gz --strip-components=1 -C /nodejs | ||
ENV PATH=$PATH:/nodejs/bin | ||
|
||
WORKDIR /tmp | ||
COPY . . | ||
|
||
RUN apt-get -qq update && apt-get -qq install -y python3 build-essential && ldd --version | ||
|
||
RUN bash etc/install-zstd.sh && npm install && npm i @mongodb-js/zstd | ||
|
||
ARG RUN_TEST | ||
RUN [ -n "$RUN_TEST" ] && npm run test || echo 'skipping testing!' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters