minetest: switch to alpine

This commit is contained in:
Quinten
2023-02-16 18:26:39 +01:00
committed by GitHub
parent 0584d4f9fb
commit 6534accaaa
3 changed files with 6 additions and 13 deletions

View File

@@ -19,7 +19,7 @@ jobs:
- altv - altv
- arma3 - arma3
- dayz - dayz
- minetest - minetest
- mohaa - mohaa
- samp - samp
- source - source

View File

@@ -1,19 +1,12 @@
FROM --platform=$TARGETOS/$TARGETARCH ubuntu:20.04 FROM --platform=$TARGETOS/$TARGETARCH alpine:edge
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
RUN add-apt-repository -y ppa:minetestdevs/stable RUN apk add --update --no-cache ca-certificates curl ffmpeg git openssl sqlite tar tzdata minetest \
RUN apt update && apt -y install minetest && adduser -D -h /home/container container
USER container USER container
ENV USER=container HOME=/home/container ENV USER=container HOME=/home/container
WORKDIR /home/container WORKDIR /home/container
COPY ./entrypoint.sh /entrypoint.sh COPY ./entrypoint.sh /entrypoint.sh
CMD [ "/bin/bash", "/entrypoint.sh" ] CMD [ "/bin/ash", "/entrypoint.sh" ]

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/bin/ash
# Default the TZ environment variable to UTC. # Default the TZ environment variable to UTC.
TZ=${TZ:-UTC} TZ=${TZ:-UTC}