Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 40490ffe43 | |||
| 455b6d40de |
+3
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user