forked from coracle/caravel
Use npx server for frontend
This commit is contained in:
+6
-6
@@ -1,15 +1,15 @@
|
|||||||
FROM node:20-alpine AS build
|
FROM node:20-slim
|
||||||
|
|
||||||
|
RUN npm install -g bun
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package.json bun.lock ./
|
COPY package.json bun.lock ./
|
||||||
RUN npm install -g bun && bun install
|
RUN bun install
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN bun run build
|
RUN bun run build
|
||||||
|
|
||||||
FROM nginx:1.27-alpine
|
EXPOSE 3000
|
||||||
|
|
||||||
COPY --from=build /app/dist /usr/share/nginx/html
|
CMD ["npx", "serve", "dist", "-s"]
|
||||||
|
|
||||||
EXPOSE 80
|
|
||||||
|
|||||||
Reference in New Issue
Block a user