Files
wt f44af70787
Build Docker Image / Build-Docker-Image (push) Successful in 2h57m26s
updated for static build
2025-06-07 03:35:01 +07:00

21 lines
424 B
Docker

FROM golang:1.24.3-alpine AS build-stage
WORKDIR /app
COPY . .
RUN apk update && \
apk upgrade && \
apk add binutils && \
go mod tidy && \
go build && \
strip auth_service
FROM alpine:latest AS build-release-stage
WORKDIR /data
COPY --from=build-stage /app/auth_service /auth_service
COPY users.json /data/users.json
COPY auth_service.config /data/auth_service.config
ENTRYPOINT [ "/auth_service" ]