mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Replace deprecated Docker config
This commit is contained in:
parent
b542dc265a
commit
3b5e1da39e
1 changed files with 8 additions and 8 deletions
16
Dockerfile
16
Dockerfile
|
|
@ -18,10 +18,10 @@ COPY docker/middleware.js ./src
|
|||
ARG DATABASE_TYPE
|
||||
ARG BASE_PATH
|
||||
|
||||
ENV DATABASE_TYPE $DATABASE_TYPE
|
||||
ENV BASE_PATH $BASE_PATH
|
||||
ENV DATABASE_TYPE=$DATABASE_TYPE
|
||||
ENV BASE_PATH=$BASE_PATH
|
||||
|
||||
ENV NEXT_TELEMETRY_DISABLED 1
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
RUN yarn build-docker
|
||||
|
||||
|
|
@ -31,9 +31,9 @@ WORKDIR /app
|
|||
|
||||
ARG NODE_OPTIONS
|
||||
|
||||
ENV NODE_ENV production
|
||||
ENV NEXT_TELEMETRY_DISABLED 1
|
||||
ENV NODE_OPTIONS $NODE_OPTIONS
|
||||
ENV NODE_ENV=production
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV NODE_OPTIONS=$NODE_OPTIONS
|
||||
|
||||
RUN addgroup --system --gid 1001 nodejs
|
||||
RUN adduser --system --uid 1001 nextjs
|
||||
|
|
@ -55,7 +55,7 @@ USER nextjs
|
|||
|
||||
EXPOSE 3000
|
||||
|
||||
ENV HOSTNAME 0.0.0.0
|
||||
ENV PORT 3000
|
||||
ENV HOSTNAME=0.0.0.0
|
||||
ENV PORT=3000
|
||||
|
||||
CMD ["yarn", "start-docker"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue