mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Update node version
This commit is contained in:
parent
493f5a5cf1
commit
7ceb48f4e3
1 changed files with 8 additions and 2 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -1,5 +1,10 @@
|
|||
# Build-time variables
|
||||
ARG NODE_VERSION=16
|
||||
ARG ALPINE_VERSION=3.15
|
||||
|
||||
|
||||
# Build image
|
||||
FROM node:12.22-alpine AS build
|
||||
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS build
|
||||
ARG BASE_PATH
|
||||
ARG DATABASE_TYPE
|
||||
|
||||
|
|
@ -25,8 +30,9 @@ COPY . /build
|
|||
RUN yarn next telemetry disable
|
||||
RUN yarn build
|
||||
|
||||
|
||||
# Production image
|
||||
FROM node:12.22-alpine AS production
|
||||
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS production
|
||||
WORKDIR /app
|
||||
|
||||
# Copy cached dependencies
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue