Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Update node version

Wonderfall7ceb48f4e3f4
diff --git a/Dockerfile b/Dockerfile
index 16dd9872c..9ad9dfdb6 100644
--- a/Dockerfile
+++ b/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