Skip to content

Commit

Permalink
switch to using bci-golang as builder image
Browse files Browse the repository at this point in the history
  • Loading branch information
clanktron committed Mar 28, 2024
1 parent e8fb37c commit 82aedc8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM golang:1.21-alpine AS builder
RUN apk add make bash
RUN apk add --no-cache ca-certificates
FROM registry.suse.com/bci/golang:1.21 AS builder
RUN zypper --non-interactive install make bash wget ca-certificates

COPY . /build
WORKDIR /build
Expand All @@ -13,7 +12,7 @@ RUN echo "hauler:x:1001:1001::/home:" > /etc/passwd \
&& mkdir /registry

FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /var/lib/ca-certificates/ca-bundle.pem /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /etc/passwd /etc/passwd
COPY --from=builder /etc/group /etc/group
COPY --from=builder --chown=hauler:hauler /home/. /home
Expand Down

0 comments on commit 82aedc8

Please sign in to comment.