progress on client site

This commit is contained in:
Henry Dollman
2024-07-08 15:53:12 -04:00
parent 93e94bdec6
commit 89b06d00aa
35 changed files with 1312 additions and 12 deletions

29
dockerfile Normal file
View File

@@ -0,0 +1,29 @@
FROM --platform=$BUILDPLATFORM golang:alpine as builder
WORKDIR /app
# Download Go modules
COPY go.mod go.sum ./
RUN go mod download
COPY *.go ./
COPY migrations ./migrations
# Build
ARG TARGETOS TARGETARCH
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags "-w -s" -o /server .
# ? -------------------------
FROM alpine:latest
RUN apk add --no-cache \
unzip \
ca-certificates
COPY --from=builder /server /
COPY ./site/dist /site/dist
EXPOSE 8080
CMD ["/server", "serve", "--http=0.0.0.0:8080"]