mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 08:36:33 +03:00
fix: add node version to docker (#2005)
This commit is contained in:
parent
f3862d58a8
commit
dfacf989bc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user