From 42b3af08de1a4fcd9577243f80e9a3e312486514 Mon Sep 17 00:00:00 2001 From: Martin Saporiti Date: Fri, 17 Nov 2023 12:28:41 -0300 Subject: [PATCH] fix: dockerfile --- Dockerfile-arm | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Dockerfile-arm b/Dockerfile-arm index e6a4257e9..de0a8345f 100644 --- a/Dockerfile-arm +++ b/Dockerfile-arm @@ -13,18 +13,18 @@ COPY ./go.sum ./ RUN go install -buildvcs=false -ldflags "-X main.build=${VERSION}" ./cmd/... RUN go install -buildvcs=false -ldflags "-X main.build=${VERSION}" ./tools/... -#FROM alpine:latest -#RUN apk add --no-cache libstdc++ gcompat libgomp -#RUN apk add --update busybox>1.3.1-r0 -#RUN apk add --update openssl>3.1.4-r1 -#RUN ln -sfv ld-linux-x86-64.so.2 /lib/libresolv.so.2 -# -#RUN apk add doas; \ -# adduser -S issuer -D -G wheel; \ -# echo 'permit nopass :wheel as root' >> /etc/doas.d/doas.conf; -#RUN chmod g+rx,o+rx / -# -#COPY --from=base ./service/api ./api -#COPY --from=base ./service/api_ui ./api_ui -#COPY --from=base ./service/bin/* ./ -#COPY --from=base ./service/pkg/credentials ./pkg/credentials \ No newline at end of file +FROM alpine:latest +RUN apk add --no-cache libstdc++ gcompat libgomp +RUN apk add --update busybox>1.3.1-r0 +RUN apk add --update openssl>3.1.4-r1 +RUN ln -sfv ld-linux-x86-64.so.2 /lib/libresolv.so.2 + +RUN apk add doas; \ + adduser -S issuer -D -G wheel; \ + echo 'permit nopass :wheel as root' >> /etc/doas.d/doas.conf; +RUN chmod g+rx,o+rx / + +COPY --from=base ./service/api ./api +COPY --from=base ./service/api_ui ./api_ui +COPY --from=base ./service/bin/* ./ +COPY --from=base ./service/pkg/credentials ./pkg/credentials \ No newline at end of file