Files
igny8/frontend/Dockerfile
2025-11-09 10:27:02 +00:00

14 lines
342 B
Docker

# Stage 1: build the TailAdmin React app
FROM node:18-alpine AS builder
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build
# Stage 2: serve the built app using Caddy
FROM caddy:latest
COPY --from=builder /app/dist /usr/share/caddy
COPY Caddyfile /etc/caddy/Caddyfile
EXPOSE 8020
CMD ["caddy", "run", "--config", "/etc/caddy/Caddyfile"]