Create go backend for site SSR and Dockerfile for dockerization
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user