fix: add node version to docker (#2005)

This commit is contained in:
Alex Varchuk 2022-05-12 16:52:16 +03:00 committed by GitHub
parent f3862d58a8
commit dfacf989bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,14 +5,14 @@
# npm i -g http-server # npm i -g http-server
# http-server -p 8000 --cors # http-server -p 8000 --cors
FROM node:alpine FROM node:12-alpine
RUN apk update && apk add --no-cache git RUN apk update && apk add --no-cache git
# Install dependencies # Install dependencies
WORKDIR /build WORKDIR /build
COPY package.json package-lock.json /build/ COPY package.json package-lock.json /build/
RUN npm ci --no-optional --ignore-scripts --force RUN npm ci --no-optional --ignore-scripts
# copy only required for the build files # copy only required for the build files
COPY src /build/src COPY src /build/src