mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 11:35:37 +01:00
general cleanup
This commit is contained in:
parent
5ecaf5587b
commit
8221c7844b
7 changed files with 1837 additions and 3763 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# Build image
|
||||
FROM node:12.18-alpine AS build
|
||||
FROM node:16.2.0-alpine3.13 AS build
|
||||
ARG DATABASE_TYPE
|
||||
ENV DATABASE_URL "postgresql://umami:umami@db:5432/umami" \
|
||||
DATABASE_TYPE=$DATABASE_TYPE
|
||||
|
|
@ -9,20 +9,20 @@ RUN yarn config set --home enableTelemetry 0
|
|||
COPY package.json yarn.lock /build/
|
||||
|
||||
# Install only the production dependencies
|
||||
RUN yarn install --production --frozen-lockfile
|
||||
RUN yarn --production --frozen-lockfile
|
||||
|
||||
# Cache these modules for production
|
||||
RUN cp -R node_modules/ prod_node_modules/
|
||||
|
||||
# Install development dependencies
|
||||
RUN yarn install --frozen-lockfile
|
||||
RUN yarn --frozen-lockfile
|
||||
|
||||
COPY . /build
|
||||
RUN yarn next telemetry disable
|
||||
RUN yarn build
|
||||
|
||||
# Production image
|
||||
FROM node:12.18-alpine AS production
|
||||
FROM node:16.2.0-alpine3.13 AS production
|
||||
WORKDIR /app
|
||||
|
||||
# Copy cached dependencies
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue