Skip to content

Commit

Permalink
fix docker image build error
Browse files Browse the repository at this point in the history
Signed-off-by: xeptore <[email protected]>
  • Loading branch information
xeptore committed Mar 23, 2023
1 parent 50db2a4 commit 5dbc963
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM docker.io/library/golang:1 AS build

RUN apt-get update && apt-get upgrade -y && apt-get install -y libssl-dev pkg-config
RUN apt-get update && apt-get upgrade -y && apt-get install -y libssl-dev pkg-config xz-utils

RUN update-ca-certificates

Expand All @@ -20,11 +20,12 @@ COPY --chown=nonroot:nonroot . .

RUN make build

RUN wget https://github.com/upx/upx/releases/download/v4.0.2/upx-4.0.2-amd64_linux.tar.xz \
&& tar -xvf upx-4.0.2-amd64_linux.tar.xz upx-4.0.2-amd64_linux/upx \
&& mv ./upx-4.0.2-amd64_linux/upx . \
&& ./upx --no-color --mono --no-progress --ultra-brute --no-backup ./bin/ingest \
&& ./upx --test ./bin/ingest
RUN set -ex && \
wget https://github.com/upx/upx/releases/download/v4.0.2/upx-4.0.2-amd64_linux.tar.xz && \
tar -xvf upx-4.0.2-amd64_linux.tar.xz upx-4.0.2-amd64_linux/upx && \
mv ./upx-4.0.2-amd64_linux/upx . && \
./upx --no-color --mono --no-progress --ultra-brute --no-backup ./bin/ingest && \
./upx --test ./bin/ingest

FROM gcr.io/distroless/base-debian11:nonroot

Expand Down

0 comments on commit 5dbc963

Please sign in to comment.