goweb-oidc/misc/docker/Dockerfile
William Petit 97bacd0bb8
Some checks reported warnings
Cadoles/goweb-oidc/pipeline/head This commit was not built
fix: isolated local dev environment
2025-03-07 12:08:07 +01:00

31 lines
506 B
Docker

FROM golang:1.24 AS build
ARG HTTP_PROXY=
ARG HTTPS_PROXY=
ARG http_proxy=
ARG https_proxy=
RUN apt-get update && apt-get install -y make git bash
COPY . /src
WORKDIR /src
RUN make ARCH_TARGETS=amd64 release-archive
FROM alpine AS certs
RUN apk update && apk add ca-certificates
FROM busybox
COPY --from=build /src/release/server-linux-amd64 /app
COPY --from=certs /etc/ssl/certs /etc/ssl/certs
WORKDIR /app
ENV HTTP_ADDRESS=:80
CMD ["bin/server", "-workdir", "/app", "-config", "server.yml"]