Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

switch to yarn to keep consistency

tim-hubb21225302b40
diff --git a/Dockerfile b/Dockerfile
index 871b8a875..566d1d4a3 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
+EXPOSE 3000
-RUN npm install && npm run build
+COPY package.json yarn.lock /app/
+RUN yarn install --frozen-lockfile
-EXPOSE 3000
+COPY . /app
+RUN yarn build
-CMD ["npm", "start"]
+CMD ["yarn", "start"]