Create go backend for site SSR and Dockerfile for dockerization

This commit is contained in:
2026-03-10 18:44:07 -05:00
parent 92600c3159
commit b47820eeea
9 changed files with 336 additions and 0 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM golang:1.26-alpine AS base
WORKDIR /build
COPY go.mod go.sum ./
RUN go mod download
COPY *.go .
RUN go build -o calic0site
EXPOSE 8080
COPY config /config
CMD ["/build/calic0site", "-config=/config", "-content=/content", "-debug"]