2020-08-19 06:23:04 +02:00
|
|
|
FROM node:12.18-alpine
|
|
|
|
|
2020-08-22 14:39:01 +02:00
|
|
|
ARG DATABASE_TYPE
|
|
|
|
|
|
|
|
ENV DATABASE_URL "postgresql://umami:umami@db:5432/umami" \
|
|
|
|
DATABASE_TYPE=$DATABASE_TYPE
|
2020-08-22 12:00:35 +02:00
|
|
|
|
2020-08-19 06:23:04 +02:00
|
|
|
WORKDIR /app
|
2020-09-20 01:06:40 +02:00
|
|
|
EXPOSE 3000
|
2020-08-19 06:23:04 +02:00
|
|
|
|
2020-09-20 01:06:40 +02:00
|
|
|
COPY package.json yarn.lock /app/
|
|
|
|
RUN yarn install --frozen-lockfile
|
2020-08-19 06:23:04 +02:00
|
|
|
|
2020-09-20 01:06:40 +02:00
|
|
|
COPY . /app
|
|
|
|
RUN yarn build
|
2020-08-19 06:23:04 +02:00
|
|
|
|
2020-09-20 01:06:40 +02:00
|
|
|
CMD ["yarn", "start"]
|