mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Merge pull request #1068 from Wonderfall/master
Dockerfile: update node version
This commit is contained in:
commit
0bd1be0971
10
Dockerfile
10
Dockerfile
@ -1,5 +1,10 @@
|
|||||||
|
# Build-time variables
|
||||||
|
ARG NODE_VERSION=16
|
||||||
|
ARG ALPINE_VERSION=3.15
|
||||||
|
|
||||||
|
|
||||||
# Build image
|
# Build image
|
||||||
FROM node:12.22-alpine AS build
|
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS build
|
||||||
ARG BASE_PATH
|
ARG BASE_PATH
|
||||||
ARG DATABASE_TYPE
|
ARG DATABASE_TYPE
|
||||||
|
|
||||||
@ -25,8 +30,9 @@ COPY . /build
|
|||||||
RUN yarn next telemetry disable
|
RUN yarn next telemetry disable
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
|
|
||||||
# Production image
|
# Production image
|
||||||
FROM node:12.22-alpine AS production
|
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS production
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy cached dependencies
|
# Copy cached dependencies
|
||||||
|
Loading…
x
Reference in New Issue
Block a user