ccclip/cmd/server/Dockerfile

15 lines
319 B
Text
Raw Normal View History

FROM golang:1.24-alpine AS builder
2023-11-10 10:35:45 +00:00
# Ensure we have a c compiler.
RUN apk add --no-cache build-base ca-certificates fuse3 sqlite
WORKDIR /src
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN go build -ldflags='-s -w' -tags 'linux' -trimpath -o /dist/app ./cmd/server
EXPOSE 8080
2023-11-10 10:35:45 +00:00
ENTRYPOINT ["/dist/app"]