mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-22 17:23:54 +01:00
b21225302b
(cherry picked from commit 5fd19dcb6e167603fd4f5dffe88b1b153060f453)
18 lines
283 B
Docker
18 lines
283 B
Docker
FROM node:12.18-alpine
|
|
|
|
ARG DATABASE_TYPE
|
|
|
|
ENV DATABASE_URL "postgresql://umami:umami@db:5432/umami" \
|
|
DATABASE_TYPE=$DATABASE_TYPE
|
|
|
|
WORKDIR /app
|
|
EXPOSE 3000
|
|
|
|
COPY package.json yarn.lock /app/
|
|
RUN yarn install --frozen-lockfile
|
|
|
|
COPY . /app
|
|
RUN yarn build
|
|
|
|
CMD ["yarn", "start"]
|