Skip to content

Open-source status page, incident response and uptime monitoring

chore: Use bun compile for the api server #974 (#975)

Ratnadeep9960e05826f3
diff --git a/apps/server/Dockerfile b/apps/server/Dockerfile
index 70be82c39..b2d9583e8 100644
--- a/apps/server/Dockerfile
+++ b/apps/server/Dockerfile
@@ -11,12 +11,12 @@ RUN rm -rf /app/apps/screenshot-service
RUN rm -rf /app/apps/web
RUN rm -rf /app/packages/api
RUN rm -rf /app/packages/integrations/vercel
-
# Temp solution for bun
RUN bun install --ignore-scripts
-
-EXPOSE 3000
-
WORKDIR /app/apps/server
-CMD ["bun", "start"]
\ No newline at end of file
+# Compile the TypeScript application
+RUN bun build --compile --sourcemap src/index.ts --outfile=app
+
+EXPOSE 3000
+CMD ["./app"]