Skip to content

Commit

Permalink
add gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
amittiwari28 committed Feb 3, 2025
1 parent 6418ea1 commit b9a7337
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile.fips
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ RUN mkdir -p /go && \
tdnf install -y \
ca-certificates \
build-essential \
shadow-utils && \
shadow-utils \
gcc && \
tdnf clean all

WORKDIR /app
Expand All @@ -21,7 +22,7 @@ ARG TARGETARCH
RUN GOOS=linux GOARCH=$TARGETARCH \
BUILD_TAGS=fips GOEXPERIMENT=systemcrypto \
CGO_ENABLED=1 FIPS_ENABLED=1 \
go build -p 1 -ldflags="-s -w" -o /app/reports-server ./
go build -ldflags="-s -w" -o /app/reports-server ./

RUN groupadd --system appgroup && \
useradd --system --uid 1001 --gid appgroup --home-dir /nonexistent --shell /usr/sbin/nologin appuser && \
Expand Down

0 comments on commit b9a7337

Please sign in to comment.