Switch to use alpine as default container

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/3/head
trivernis 4 years ago
parent e685fea4f9
commit d494206c0c
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -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
trivernis/snekcloud-server:alpine

@ -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 /

Loading…
Cancel
Save