Use npx server for frontend

This commit is contained in:
Jon Staab
2026-02-27 20:56:16 -08:00
parent 871f99f2ec
commit 6ce1c5495e
+6 -6
View File
@@ -1,15 +1,15 @@
FROM node:20-alpine AS build
FROM node:20-slim
RUN npm install -g bun
WORKDIR /app
COPY package.json bun.lock ./
RUN npm install -g bun && bun install
RUN bun install
COPY . .
RUN bun run build
FROM nginx:1.27-alpine
EXPOSE 3000
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["npx", "serve", "dist", "-s"]