Files
astro-tina/Dockerfile
Kunthawat Greethong ad3bd39c2d
Some checks failed
Deploy to Easypanel / deploy (push) Has been cancelled
Replace nginx with Node.js static server for Easypanel
2026-04-28 07:48:45 +07:00

22 lines
305 B
Docker

FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM node:22-alpine AS runner
WORKDIR /app
ENV PORT=8080
ENV DIST_DIR=./dist
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/server.js .
EXPOSE 8080
CMD ["node", "server.js"]