mirror of
https://github.com/kremalicious/umami.git
synced 2024-06-15 17:03:14 +02:00
Updated docker file.
This commit is contained in:
parent
f2aa358792
commit
6ff4ce2ad6
15
Dockerfile
15
Dockerfile
|
@ -8,18 +8,16 @@ RUN yarn install --frozen-lockfile
|
||||||
|
|
||||||
# Rebuild the source code only when needed
|
# Rebuild the source code only when needed
|
||||||
FROM node:16-alpine AS builder
|
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
|
WORKDIR /app
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
COPY --from=deps /app/node_modules ./node_modules
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Next.js collects completely anonymous telemetry data about general usage.
|
ARG BASE_PATH
|
||||||
# Learn more here: https://nextjs.org/telemetry
|
ARG DATABASE_URL
|
||||||
# Uncomment the following line in case you want to disable telemetry during the build.
|
ARG DATABASE_TYPE
|
||||||
|
ENV BASE_PATH $BASE_PATH
|
||||||
|
ENV DATABASE_URL $DATABASE_URL
|
||||||
|
ENV DATABASE_TYPE $DATABASE_TYPE
|
||||||
ENV NEXT_TELEMETRY_DISABLED 1
|
ENV NEXT_TELEMETRY_DISABLED 1
|
||||||
|
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
@ -29,7 +27,6 @@ FROM node:16-alpine AS runner
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV production
|
||||||
# Uncomment the following line in case you want to disable telemetry during runtime.
|
|
||||||
ENV NEXT_TELEMETRY_DISABLED 1
|
ENV NEXT_TELEMETRY_DISABLED 1
|
||||||
|
|
||||||
RUN addgroup --system --gid 1001 nodejs
|
RUN addgroup --system --gid 1001 nodejs
|
||||||
|
|
Loading…
Reference in New Issue
Block a user