Merge pull request #187 from TuiSoftware/keep-dockerfile-consistency

use yarn and frozen lock to keep consistency
This commit is contained in:
Mike Cao
2020-09-22 03:01:55 -07:00
committed by GitHub

View File

@@ -5,11 +5,13 @@ ARG DATABASE_TYPE
ENV DATABASE_URL "postgresql://umami:umami@db:5432/umami" \
DATABASE_TYPE=$DATABASE_TYPE
COPY . /app
WORKDIR /app
RUN npm install && npm run build
EXPOSE 3000
CMD ["npm", "start"]
COPY package.json yarn.lock /app/
RUN yarn install --frozen-lockfile
COPY . /app
RUN yarn build
CMD ["yarn", "start"]