Skip to content

Commit

Permalink
feat: update to docker base image to node v18.12.0 (#3469)
Browse files Browse the repository at this point in the history
* feat: update to  node v18.12.0

* Delete ci-e2e.yml
  • Loading branch information
juanpicado committed Nov 2, 2022
1 parent e62cd00 commit 644938c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 33 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/ci-e2e.yml

This file was deleted.

13 changes: 7 additions & 6 deletions Dockerfile
@@ -1,4 +1,4 @@
FROM --platform=${BUILDPLATFORM:-linux/amd64} node:14.20.1-alpine as builder
FROM --platform=${BUILDPLATFORM:-linux/amd64} node:18.12.0-alpine as builder

ENV NODE_ENV=production \
VERDACCIO_BUILD_REGISTRY=https://registry.npmjs.org \
Expand All @@ -9,22 +9,23 @@ ENV NODE_ENV=production \
RUN apk --no-cache add openssl ca-certificates wget && \
apk --no-cache add g++ gcc libgcc libstdc++ linux-headers make python3 && \
wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \
wget -q https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.25-r0/glibc-2.25-r0.apk && \
apk add glibc-2.25-r0.apk
wget -q https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.29-r0/glibc-2.29-r0.apk && \
apk add glibc-2.29-r0.apk

WORKDIR /opt/verdaccio-build
COPY . .

RUN yarn config set npmRegistryServer $VERDACCIO_BUILD_REGISTRY && \
yarn config set enableProgressBars true && \
yarn config set enableTelemetry true && \
yarn config set enableTelemetry false && \
yarn config set enableGlobalCache false && \
yarn install && \
yarn config set enableScripts false && \
yarn install --immutable && \
yarn code:docker-build && \
yarn cache clean && \
yarn workspaces focus --production

FROM node:14.20.1-alpine
FROM node:18.12.0-alpine
LABEL maintainer="https://github.com/verdaccio/verdaccio"

ENV VERDACCIO_APPDIR=/opt/verdaccio \
Expand Down

0 comments on commit 644938c

Please sign in to comment.