diff --git a/Dockerfile b/Dockerfile index 871b8a87..566d1d4a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]