mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-10 18:43:29 +00:00
Update Dockerfile
This commit is contained in:
parent
5810781fd4
commit
10ffb41353
@ -3,15 +3,10 @@ FROM node:12-alpine
|
|||||||
RUN mkdir -p /usr/src/app/private
|
RUN mkdir -p /usr/src/app/private
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
COPY package.json package-lock.json /usr/src/app/
|
|
||||||
# Without the badge-maker package.json and CLI script in place, `npm ci` will fail.
|
|
||||||
COPY badge-maker /usr/src/app/badge-maker/
|
|
||||||
|
|
||||||
# We need dev deps to build the front end. We don't need Cypress, though.
|
|
||||||
RUN NODE_ENV=development CYPRESS_INSTALL_BINARY=0 npm ci
|
|
||||||
|
|
||||||
COPY . /usr/src/app
|
COPY . /usr/src/app
|
||||||
RUN npm run build && \
|
# We need dev deps to build the front end. We don't need Cypress, though.
|
||||||
|
RUN NODE_ENV=development CYPRESS_INSTALL_BINARY=0 npm ci && \
|
||||||
|
npm run build && \
|
||||||
npm prune --production && \
|
npm prune --production && \
|
||||||
npm cache clean --force
|
npm cache clean --force
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user