goweb-oidc/misc/dokku/Dockerfile

31 lines
498 B
Docker
Raw Permalink Normal View History

2022-08-10 11:13:12 +02:00
FROM golang:1.19 AS build
2020-05-20 19:29:13 +02:00
ARG HTTP_PROXY=
ARG HTTPS_PROXY=
ARG http_proxy=
ARG https_proxy=
2022-08-10 11:13:12 +02:00
RUN apt-get update && apt-get install -y make git bash
2020-05-20 19:29:13 +02:00
COPY . /src
WORKDIR /src
RUN make ARCH_TARGETS=amd64 release
2023-03-02 15:20:14 +01:00
FROM alpine as certs
RUN apk update && apk add ca-certificates
2020-05-20 19:29:13 +02:00
FROM busybox
COPY --from=build /src/release/server-linux-amd64 /app
2023-03-02 15:20:14 +01:00
COPY --from=certs /etc/ssl/certs /etc/ssl/certs
2020-05-20 19:29:13 +02:00
WORKDIR /app
ENV HTTP_ADDRESS=:80
2023-03-02 15:20:14 +01:00
CMD ["bin/server", "-workdir", "/app", "-config", "server.yml"]