Files
zoe-shaldon/Dockerfile
T
warkanum 39f5b8d5cc feat(ui): add wedding theme styles and layout components
* Introduced wedding-themed CSS variables for styling.
* Created layout component for the wedding site with navigation and countdown.
* Added RSVP and photo upload pages with form handling.
* Implemented QR code page for wedding site access.
* Configured TypeScript and Vite for the project.
* Added robots.txt for search engine crawling.
2026-08-11 23:31:35 +02:00

24 lines
569 B
Docker

# syntax=docker/dockerfile:1
FROM node:20-alpine AS frontend-builder
WORKDIR /app/ui
COPY ui/package*.json ./
RUN npm ci
COPY ui/ ./
RUN npm run build
FROM golang:1.26-alpine AS backend-builder
WORKDIR /app
COPY server/go.mod server/go.sum ./
RUN go mod download
COPY server/ ./
COPY --from=frontend-builder /app/ui/build ./web/dist
RUN CGO_ENABLED=0 go build -o /wedding-server .
FROM alpine:3.20
RUN apk add --no-cache ca-certificates
COPY --from=backend-builder /wedding-server /usr/local/bin/wedding-server
WORKDIR /app
EXPOSE 8080
ENTRYPOINT ["wedding-server"]