mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-03-11 02:15:57 -05:00
fix: docker build missing modules (#2041)
This commit is contained in:
parent
bde39abe8d
commit
f4a2be7dca
2 changed files with 15 additions and 11 deletions
|
@ -10,16 +10,20 @@
|
||||||
# e.g.
|
# e.g.
|
||||||
!.babelrc
|
!.babelrc
|
||||||
!.eslintrc
|
!.eslintrc
|
||||||
!.prettierrc
|
!.prettierrc.json
|
||||||
|
!.prettierignore
|
||||||
!.eslintignore
|
!.eslintignore
|
||||||
!.stylelintrc
|
!.stylelintrc
|
||||||
!.flowconfig
|
|
||||||
!.jest.config.js
|
|
||||||
!.jestEnvironment.js
|
|
||||||
|
|
||||||
# do not copy over node_modules we will run `npm install` anyway
|
# do not copy over node_modules we will run `pnpm install` anyway
|
||||||
node_modules
|
node_modules
|
||||||
website
|
website
|
||||||
|
jest
|
||||||
|
docs
|
||||||
|
contrib
|
||||||
|
docker-examples
|
||||||
|
website
|
||||||
|
systemd
|
||||||
|
|
||||||
# output from test runs and similar things
|
# output from test runs and similar things
|
||||||
*.log
|
*.log
|
||||||
|
|
12
Dockerfile
12
Dockerfile
|
@ -1,4 +1,4 @@
|
||||||
FROM node:12.18.4-alpine as builder
|
FROM --platform=${BUILDPLATFORM:-linux/amd64} node:14.15.1-alpine as builder
|
||||||
|
|
||||||
ENV NODE_ENV=development \
|
ENV NODE_ENV=development \
|
||||||
VERDACCIO_BUILD_REGISTRY=https://registry.verdaccio.org
|
VERDACCIO_BUILD_REGISTRY=https://registry.verdaccio.org
|
||||||
|
@ -12,14 +12,14 @@ RUN apk --no-cache add openssl ca-certificates wget && \
|
||||||
WORKDIR /opt/verdaccio-build
|
WORKDIR /opt/verdaccio-build
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN npm -g i pnpm@5.5.12 && \
|
RUN npm -g i pnpm@latest && \
|
||||||
pnpm config set registry $VERDACCIO_BUILD_REGISTRY && \
|
pnpm config set registry $VERDACCIO_BUILD_REGISTRY && \
|
||||||
pnpm recursive install --frozen-lockfile --ignore-scripts && \
|
pnpm recursive install --frozen-lockfile --ignore-scripts && \
|
||||||
pnpm run build && \
|
pnpm run build
|
||||||
pnpm run lint && \
|
# FIXME: need to remove devDependencies from the build
|
||||||
pnpm install --prod --ignore-scripts
|
# RUN pnpm install --prod --ignore-scripts
|
||||||
|
|
||||||
FROM node:12.18.4-alpine
|
FROM node:14.15.1-alpine
|
||||||
LABEL maintainer="https://github.com/verdaccio/verdaccio"
|
LABEL maintainer="https://github.com/verdaccio/verdaccio"
|
||||||
|
|
||||||
ENV VERDACCIO_APPDIR=/opt/verdaccio \
|
ENV VERDACCIO_APPDIR=/opt/verdaccio \
|
||||||
|
|
Loading…
Add table
Reference in a new issue