add certificates
This commit is contained in:
parent
a91674ff0f
commit
506487e3e2
1 changed files with 2 additions and 1 deletions
|
@ -4,11 +4,12 @@ WORKDIR /app
|
|||
COPY . ./
|
||||
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -a -installsuffix cgo -o bin/s3manager ./cmd/s3manager
|
||||
|
||||
FROM scratch
|
||||
FROM alpine
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/bin/s3manager ./
|
||||
COPY --from=builder /app/web ./web/
|
||||
COPY --from=builder /etc/passwd /etc/passwd
|
||||
RUN apk update && apk add --no-cache ca-certificates
|
||||
USER app
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["./s3manager"]
|
||||
|
|
Loading…
Reference in a new issue