feat: generate and publish artefacts via jenkins
All checks were successful
Cadoles/goweb-oidc/pipeline/head This commit looks good

This commit is contained in:
2023-12-06 15:45:25 +01:00
parent e16b905bca
commit d4637b26bc
4 changed files with 74 additions and 26 deletions

30
misc/docker/Dockerfile Normal file
View File

@ -0,0 +1,30 @@
FROM golang:1.19 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"]