From d494206c0c6dad094084ba81feb20376fcdc3d16 Mon Sep 17 00:00:00 2001 From: trivernis Date: Wed, 11 Nov 2020 08:40:53 +0100 Subject: [PATCH] Switch to use alpine as default container Signed-off-by: trivernis --- .github/workflows/docker.yml | 4 ++-- Dockerfile | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 1e5e0a2..518c5c4 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -28,7 +28,7 @@ jobs: with: context: . file: ./Dockerfile - platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 + platforms: linux/amd64,linux/arm/v7,linux/arm64 push: true tags: | - trivernis/snekcloud-server:latest \ No newline at end of file + trivernis/snekcloud-server:alpine \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index f1f0caf..76791aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,8 @@ RUN ./snekcloud-server generate-key private_key RUN timeout 1s ./snekcloud-server || exit 0 RUN cp config/00_default.toml config/10_local.toml -FROM scratch +FROM alpine +RUN apk add --no-cache build-base COPY --from=builder /usr/src/snekcloud-server/target/release/snekcloud-server . COPY --from=builder /usr/src/snekcloud-server/target/release/config / COPY --from=builder /usr/src/snekcloud-server/target/release/private_key /