-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
39 lines (28 loc) · 1.2 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM mcr.microsoft.com/dotnet/runtime:9.0-bookworm-slim
LABEL author="Voxel Bone Cloud" maintainer="[email protected]"
LABEL org.opencontainers.image.source=https://github.com/voxelbonecloud/headless-docker
LABEL org.opencontainers.image.description="Docker image based on Debian Bookworm Slim image with dotnet8 for hosting Resonite Headless servers. Supports automatic modding of the Headless."
LABEL org.opencontainers.image.licenses=MIT-0
LABEL org.opencontainers.image.authors="Voxel Bone Cloud"
RUN apt update \
&& dpkg --add-architecture i386 \
&& apt install curl git lib32gcc-s1 libfreetype6 -y \
&& groupadd -g 1000 container \
&& useradd -u 1000 -g 1000 -m -d /home/container -s /bin/bash container
COPY ./scripts /scripts
RUN chmod +x /scripts/*
RUN mkdir /Logs \
&& chown -R container:container /Logs
RUN mkdir /Config \
&& chown -R container:container /Config
RUN mkdir -p /RML /RML/rml_mods /RML/rml_libs /RML/rml_config \
&& chown -R container:container /RML
USER container
USER container
ENV USER=container
ENV HOME=/home/container
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /home/container
STOPSIGNAL SIGINT
ENTRYPOINT ["/scripts/update-resonite.sh"]
CMD ["/scripts/launch-resonite.sh"]