forked from pterodactyl/yolks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (17 loc) · 1.04 KB
/
Copy pathDockerfile
File metadata and controls
23 lines (17 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM --platform=linux/amd64 openjdk:17-slim
LABEL author="Latchee" maintainer="mail@latchee.com"
LABEL org.opencontainers.image.source="https://github.com/latchee/yolks"
LABEL org.opencontainers.image.licenses=MIT
RUN apt-get update -y \
&& apt-get install -y curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 webp \
&& useradd --home /home/container --create-home container\
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash -\
&& apt-get install -y nodejs\
&& curl --output /home/container/mcsleepingserverstarter-linux --location https://github.com/vincss/mcsleepingserverstarter/releases/latest/download/mcsleepingserverstarter-linux-x64\
&& chmod +x /home/container/mcsleepingserverstarter-linux\
&& chown container /home/container/mcsleepingserverstarter-linux
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
COPY ./entrypoint.sh /entrypoint.sh
CMD [ "/bin/bash", "/entrypoint.sh" ]