Updating to latest pagoda release
This commit is contained in:
parent
05cf6c8318
commit
4d5d45d1a4
111 changed files with 358 additions and 1535 deletions
19
Dockerfile
Normal file
19
Dockerfile
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Stage 1: Build the Go binary
|
||||
FROM golang:1.26-alpine AS builder
|
||||
RUN apk add --no-cache gcc musl-dev # for go-sqlite3 (CGO)
|
||||
WORKDIR /build
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=1 go build -o /app/server ./cmd/web
|
||||
|
||||
# Stage 2: Minimal runtime image
|
||||
FROM alpine:latest
|
||||
RUN apk --no-cache add ca-certificates tzdata
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/server /app/server
|
||||
COPY --from=builder /build/config /app/config
|
||||
COPY --from=builder /build/public /app/public
|
||||
RUN mkdir -p /app/dbs /app/uploads
|
||||
EXPOSE 8000
|
||||
CMD ["/app/server"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue