bump to alpine:3.20 and optimize image using either from:scratch or pyinstaller

This commit is contained in:
t3chn0m4g3
2024-12-04 20:52:30 +01:00
parent 2747719f05
commit b75e22cabc
7 changed files with 47 additions and 59 deletions

View File

@ -17,10 +17,8 @@ RUN apk --no-cache -U add \
RUN git clone https://github.com/nsmfoo/dicompot.git && \
cd dicompot && \
git checkout 41331194156bbb17078bcc1594f4952ac06a731e && \
cp /root/dist/go.mod . && \
pwd && ls -alR
cp /root/dist/go.mod .
WORKDIR /go/dicompot
RUN ls -alR
RUN go mod tidy
RUN go mod download
RUN go build -o dicompot github.com/nsmfoo/dicompot/server