1
0
Fork 0
mirror of https://github.com/Luzifer/nginx-sso.git synced 2024-12-20 12:51:17 +00:00

[#65] Provide Dockerfile for arm64v8 architecture (#66)

This commit is contained in:
Knut Ahlers 2021-11-22 00:28:22 +01:00 committed by GitHub
parent 8738d621fe
commit cae187e39c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 8 deletions

View file

@ -3,11 +3,10 @@ FROM golang:alpine as builder
ADD . /go/src/github.com/Luzifer/nginx-sso
WORKDIR /go/src/github.com/Luzifer/nginx-sso
ENV CGO_ENABLED=1
ENV CGO_ENABLED=0
RUN set -ex \
&& apk add --update \
build-base \
git \
&& go install \
-ldflags "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)" \
@ -21,11 +20,7 @@ RUN set -ex \
&& apk --no-cache add \
bash \
ca-certificates \
curl \
&& curl -sSfLo /usr/local/bin/dumb-init "https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_amd64" \
&& chmod +x /usr/local/bin/dumb-init \
&& apk --no-cache del --purge \
curl
dumb-init
COPY --from=builder /go/bin/nginx-sso /usr/local/bin/
COPY --from=builder /go/src/github.com/Luzifer/nginx-sso/config.yaml /usr/local/share/nginx-sso/

View file

@ -1,4 +1,4 @@
#!/usr/local/bin/dumb-init /bin/bash
#!/usr/bin/dumb-init /bin/bash
set -euo pipefail
# Copy frontend if not available