switch to yarn to keep consistency

(cherry picked from commit 5fd19dcb6e167603fd4f5dffe88b1b153060f453)
This commit is contained in:
tim-hub 2020-09-20 11:06:40 +12:00
parent 4d2a51ca49
commit b21225302b
1 changed files with 7 additions and 5 deletions

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