From 6ff4ce2ad6f7469145fcc30d3421bbbb9ced67ca Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Tue, 14 Jun 2022 11:32:21 -0700 Subject: [PATCH] Updated docker file. --- Dockerfile | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 84752e17..1b0af259 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,18 +8,16 @@ RUN yarn install --frozen-lockfile # Rebuild the source code only when needed FROM node:16-alpine AS builder -ARG BASE_PATH -ARG DATABASE_TYPE -ENV BASE_PATH=$BASE_PATH -ENV DATABASE_URL "postgresql://umami:umami@db:5432/umami" -ENV DATABASE_TYPE=$DATABASE_TYPE WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . -# Next.js collects completely anonymous telemetry data about general usage. -# Learn more here: https://nextjs.org/telemetry -# Uncomment the following line in case you want to disable telemetry during the build. +ARG BASE_PATH +ARG DATABASE_URL +ARG DATABASE_TYPE +ENV BASE_PATH $BASE_PATH +ENV DATABASE_URL $DATABASE_URL +ENV DATABASE_TYPE $DATABASE_TYPE ENV NEXT_TELEMETRY_DISABLED 1 RUN yarn build @@ -29,7 +27,6 @@ FROM node:16-alpine AS runner WORKDIR /app ENV NODE_ENV production -# Uncomment the following line in case you want to disable telemetry during runtime. ENV NEXT_TELEMETRY_DISABLED 1 RUN addgroup --system --gid 1001 nodejs