umami/Dockerfile
tim-hub b21225302b switch to yarn to keep consistency
(cherry picked from commit 5fd19dcb6e167603fd4f5dffe88b1b153060f453)
2020-09-20 11:17:58 +12:00

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"]