mirror of
https://github.com/amark/gun.git
synced 2025-06-06 14:16:44 +00:00
Allow Dockerfile to auto-update Node version (#1303)
This commit is contained in:
parent
9abebd7673
commit
2ee0bed0c1
@ -1,5 +1,5 @@
|
|||||||
# install packages
|
# install packages
|
||||||
FROM node:14-alpine as builder
|
FROM node:lts-alpine as builder
|
||||||
RUN mkdir /work
|
RUN mkdir /work
|
||||||
WORKDIR /work
|
WORKDIR /work
|
||||||
RUN apk add --no-cache alpine-sdk python3
|
RUN apk add --no-cache alpine-sdk python3
|
||||||
@ -8,7 +8,7 @@ RUN mkdir -p node_modules
|
|||||||
RUN npm ci --only=production
|
RUN npm ci --only=production
|
||||||
|
|
||||||
# fresh image without dev packages
|
# fresh image without dev packages
|
||||||
FROM node:14-alpine
|
FROM node:lts-alpine
|
||||||
# build-time metadata as defined at http://label-schema.org
|
# build-time metadata as defined at http://label-schema.org
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user