forked from Nixius/authelia
18 lines
349 B
Docker
18 lines
349 B
Docker
FROM golang:1.23-alpine AS builder
|
|
|
|
WORKDIR /build
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /ss-atlas ./cmd/
|
|
|
|
FROM alpine:3.21
|
|
RUN apk add --no-cache ca-certificates
|
|
WORKDIR /app
|
|
COPY --from=builder /ss-atlas /app/ss-atlas
|
|
COPY templates/ /app/templates/
|
|
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["/app/ss-atlas"]
|