From cc5d45b83397dbf0f814567bfc62c3f63998ab29 Mon Sep 17 00:00:00 2001 From: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Sun, 14 Jul 2024 16:43:53 +0200 Subject: [PATCH] Dockerfile: use alpine-base image and install required build packages --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 790da75..48a22d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,13 @@ # Build wg-password binary using Rust on Alpine -FROM docker.io/library/rust:1.79.0-alpine AS build_password_binary +FROM docker.io/library/alpine AS build_password_binary WORKDIR /wg-password COPY wg-password . # Build the Rust project +RUN apk add --no-cache \ + rust \ + cargo RUN cargo build --release # As a workaround we have to build on nodejs 18