Compare commits

..

2 Commits

Author SHA1 Message Date
RecordingTheSmile 40490ffe43 fix: update Dockerfile to install packages non-interactively 2025-11-06 21:31:02 +08:00
RecordingTheSmile 455b6d40de fix: update Dockerfile to include apt update before installing build-essential 2025-11-06 21:28:01 +08:00
+3 -2
View File
@@ -1,11 +1,12 @@
FROM golang:latest AS backend-builder
RUN apt install build-essential
RUN apt update
RUN apt install -y build-essential
WORKDIR /build
COPY . .
ENV CGO_ENABLED=1
RUN go build -ldflags="-s -w" -o bin/server
RUN apt install upx-ucl
RUN apt install -y upx-ucl
RUN upx --best --lzma bin/server