Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

don't install yarn as it already seems to be installed

Blue Mouse760ddd62d42a
diff --git a/Dockerfile.fly b/Dockerfile.fly
index 19356d27e..daeffc5cd 100644
--- a/Dockerfile.fly
+++ b/Dockerfile.fly
@@ -11,7 +11,8 @@ RUN mkdir /app
WORKDIR /app
ADD package.json ./
-RUN npm install -g yarn && yarn install
+# RUN npm install --production=false
+RUN yarn install --production=false
# Setup production node_modules
FROM base as production-deps
@@ -21,7 +22,8 @@ WORKDIR /app
COPY --from=deps /app/node_modules /app/node_modules
ADD package.json ./
-RUN npm prune --production
+# The prune command isn't necessary when using Yarn
+# RUN npm prune --production
# Build the app
FROM base as build