diff options
Diffstat (limited to 'src/thelounge/Dockerfile')
| -rw-r--r-- | src/thelounge/Dockerfile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/thelounge/Dockerfile b/src/thelounge/Dockerfile new file mode 100644 index 0000000..3cfdc02 --- /dev/null +++ b/src/thelounge/Dockerfile @@ -0,0 +1,14 @@ +ARG NODE_VERSION=v12.16.2 +FROM registry.gitlab.com/grumps/grumpy-containers/base:v0.0.3-buster-builder as builder +ARG NODE_VERSION +RUN mkdir -p /opt/build/nodejs \ + && curl "https://nodejs.org/dist/${NODE_VERSION}/node-${NODE_VERSION}-linux-x64.tar.xz" -o "/opt/build/node-${NODE_VERSION}-linux-x64.tar.xz" \ + && tar -xJvf "/opt/build/node-${NODE_VERSION}-linux-x64.tar.xz" -C /opt/build/nodejs --strip-components=1 +RUN mkdir -p /opt/build/yarn \ + && curl -Lo /opt/build/yarn/latest.tar.gz https://yarnpkg.com/latest.tar.gz \ + && tar zvxf /opt/build/yarn/latest.tar.gz -C /opt/build/yarn --strip-components=1 + +FROM registry.gitlab.com/grumps/grumpy-containers/base:v0.0.3 +COPY --from=builder /opt/build/nodejs /opt/lib/nodejs +COPY --from=builder /opt/build/yarn /opt/lib/yarn +ENV PATH "$PATH:/opt/lib/yarn/bin:/opt/lib/nodejs/bin" |