minetest: go back to ubuntu

This commit is contained in:
Quinten
2023-02-23 19:29:35 +01:00
committed by GitHub
parent 6534accaaa
commit f406fc9898
2 changed files with 10 additions and 5 deletions

View File

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

View File

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