refac: speed up the docker container by removing unneeded steps (#985)
Some checks failed
CodeQL / Analyze (javascript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Docker Build and Push / docker_build (push) Has been cancelled
Docker Build and Push / docker_scan (push) Has been cancelled
Mark stale issues and pull requests / stale (push) Has been cancelled

* refac: speed up the docker container by removing unneeded steps

* fix: revert compose tag

---------

Co-authored-by: DaanSelen <dselen@systemec.nl>
This commit is contained in:
DaanSelen
2025-11-06 09:31:57 +01:00
committed by GitHub
parent 58dc5a70dc
commit bfc3e285db
2 changed files with 5 additions and 16 deletions

View File

@@ -27,7 +27,7 @@ RUN go mod download && \
go build -ldflags '-linkmode external -extldflags "-fno-PIC -static"' -v -o /usr/bin
#
# AWG TOOLS BUILDING STAGE
# Base: Debian
# Base: Alpine
#
FROM alpine:latest AS awg-tools
@@ -87,11 +87,8 @@ LABEL maintainer="dselen@nerthus.nl"
# Install only the runtime dependencies
RUN apk add --no-cache \
iproute2 iptables \
bash curl \
wget unzip \
procps sudo \
tzdata wireguard-tools \
openresolv openrc
bash curl procps \
tzdata wireguard-tools
# Copy only the final binaries from the AWG builder stages
COPY --from=awg-go /usr/bin/amneziawg-go /usr/bin/amneziawg-go