15 lines
272 B
Docker
15 lines
272 B
Docker
# Build
|
|
FROM golang:1.26.3-alpine3.22 AS build
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN go build -o gatekeeper.elf main.go
|
|
|
|
# Runtime
|
|
FROM alpine:latest AS runtime
|
|
WORKDIR /app
|
|
COPY --from=build /app/gatekeeper.elf .
|
|
|
|
ENV HTTP_ADDRESS="0.0.0.0:8080"
|
|
EXPOSE 8080
|
|
|
|
CMD ["./gatekeeper.elf"] |