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!

Update dependencies, drop Yarn

Blue Mousea243feff5b02
diff --git a/web/Dockerfile.fly b/web/Dockerfile.fly
index e1c05f476..de8333ba2 100644
--- a/web/Dockerfile.fly
+++ b/web/Dockerfile.fly
@@ -1,8 +1,5 @@
# base node image
-FROM node:20-bullseye-slim as base
-
-# Install openssl for Prisma
-RUN apt-get update && apt-get install -y openssl
+FROM node:22-alpine as base
# Install all node_modules, including dev dependencies
FROM base as deps
@@ -11,8 +8,7 @@ RUN mkdir /app
WORKDIR /app
ADD package.json ./
-# RUN npm install --production=false
-RUN yarn install --production=false
+RUN npm install --production=false
# Setup production node_modules
FROM base as production-deps
@@ -22,8 +18,7 @@ WORKDIR /app
COPY --from=deps /app/node_modules /app/node_modules
ADD package.json ./
-# The prune command isn't necessary when using Yarn
-# RUN npm prune --production
+RUN npm prune --production
# Build the app
FROM base as build
@@ -35,10 +30,6 @@ WORKDIR /app
COPY --from=deps /app/node_modules /app/node_modules
-# If we're using Prisma, uncomment to cache the prisma schema
-# ADD prisma .
-# RUN npx prisma generate
-
ADD . .
RUN npm run build
@@ -52,9 +43,6 @@ WORKDIR /app
COPY --from=production-deps /app/node_modules /app/node_modules
-# Uncomment if using Prisma
-# COPY --from=build /app/node_modules/.prisma /app/node_modules/.prisma
-
COPY --from=build /app/build /app/build
COPY --from=build /app/public /app/public
ADD . .