Skip to content

Commit

Permalink
Run go-makefile-maker
Browse files Browse the repository at this point in the history
  • Loading branch information
sapcc-bot committed Jan 17, 2024
1 parent d674264 commit 89d0c6e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM golang:1.21.6-alpine3.19 as builder

RUN apk add --no-cache --no-progress gcc git make musl-dev
RUN apk add --no-cache --no-progress ca-certificates gcc git make musl-dev

COPY . /src
ARG BININFO_BUILD_DATE BININFO_COMMIT_HASH BININFO_VERSION # provided to 'make install'
Expand All @@ -13,10 +13,12 @@ FROM alpine:3.19
RUN addgroup -g 4200 appgroup \
&& adduser -h /home/appuser -s /sbin/nologin -G appgroup -D -u 4200 appuser

COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs/

# upgrade all installed packages to fix potential CVEs in advance
# also remove apk package manager to hopefully remove dependecy on openssl 🤞
# also remove apk package manager to hopefully remove dependency on OpenSSL 🤞
RUN apk upgrade --no-cache --no-progress \
&& apk add --no-cache --no-progress ca-certificates postgresql15-client curl jq \
&& apk add --no-cache --no-progress postgresql15-client curl jq \
&& apk add --no-cache --no-progress --repository=https://dl-cdn.alpinelinux.org/alpine/v3.18/community postgresql12-client \
&& apk del --no-cache --no-progress apk-tools alpine-keys

Expand Down

0 comments on commit 89d0c6e

Please sign in to comment.