From 6534accaaaa16170cd280678bcd9f3fb4e6a88d5 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Thu, 16 Feb 2023 18:26:39 +0100 Subject: [PATCH] minetest: switch to alpine --- .github/workflows/games.yml | 2 +- games/minetest/Dockerfile | 15 ++++----------- games/minetest/entrypoint.sh | 2 +- 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/games.yml b/.github/workflows/games.yml index a260202..7793b8f 100644 --- a/.github/workflows/games.yml +++ b/.github/workflows/games.yml @@ -19,7 +19,7 @@ jobs: - altv - arma3 - dayz - - minetest + - minetest - mohaa - samp - source diff --git a/games/minetest/Dockerfile b/games/minetest/Dockerfile index f3da098..c4f55f5 100644 --- a/games/minetest/Dockerfile +++ b/games/minetest/Dockerfile @@ -1,19 +1,12 @@ -FROM --platform=$TARGETOS/$TARGETARCH ubuntu:20.04 - -ENV DEBIAN_FRONTEND noninteractive - -RUN apt update -y \ - && apt install -y curl ca-certificates openssl git tar gnupg2 sqlite3 fontconfig tzdata iproute2 libfreetype6 software-properties-common \ - && useradd -d /home/container -m container +FROM --platform=$TARGETOS/$TARGETARCH alpine:edge -RUN add-apt-repository -y ppa:minetestdevs/stable -RUN apt update && apt -y install minetest - +RUN apk add --update --no-cache ca-certificates curl ffmpeg git openssl sqlite tar tzdata minetest \ + && adduser -D -h /home/container container USER container ENV USER=container HOME=/home/container WORKDIR /home/container COPY ./entrypoint.sh /entrypoint.sh -CMD [ "/bin/bash", "/entrypoint.sh" ] \ No newline at end of file +CMD [ "/bin/ash", "/entrypoint.sh" ] \ No newline at end of file diff --git a/games/minetest/entrypoint.sh b/games/minetest/entrypoint.sh index 399eb5a..31db20c 100644 --- a/games/minetest/entrypoint.sh +++ b/games/minetest/entrypoint.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/ash # Default the TZ environment variable to UTC. TZ=${TZ:-UTC}