Files
DiunDashboard/Dockerfile

16 lines
306 B
Docker

# syntax=docker/dockerfile:1
FROM golang:1.26-alpine AS builder
WORKDIR /app
COPY go.mod .
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o server ./cmd/diunwebhook/main.go
FROM alpine:3.18
WORKDIR /app
COPY --from=builder /app/server ./server
COPY static ./static
EXPOSE 8080
CMD ["./server"]