blockyserver/Dockerfile
2026-01-22 16:26:39 +06:00

20 lines
299 B
Docker

FROM golang:1.25-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o blockyserver .
FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/blockyserver .
EXPOSE 8080
ENTRYPOINT ["./blockyserver"]
CMD ["-port", "8080"]