minetest: switch to alpine
This commit is contained in:
2
.github/workflows/games.yml
vendored
2
.github/workflows/games.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
|||||||
- altv
|
- altv
|
||||||
- arma3
|
- arma3
|
||||||
- dayz
|
- dayz
|
||||||
- minetest
|
- minetest
|
||||||
- mohaa
|
- mohaa
|
||||||
- samp
|
- samp
|
||||||
- source
|
- source
|
||||||
|
@@ -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" ]
|
@@ -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}
|
||||||
|
Reference in New Issue
Block a user