-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
35 lines (29 loc) · 893 Bytes
/
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
FROM ich777/debian-baseimage
LABEL org.opencontainers.image.authors="[email protected]"
LABEL org.opencontainers.image.source="https://github.com/ich777/docker-openrct2-server"
RUN apt-get update && \
apt-get -y install --no-install-recommends curl libfreetype6 fontconfig libzip4 libicu72 && \
rm -rf /var/lib/apt/lists/*
ENV DATA_DIR="/serverdata"
ENV SERVER_DIR="${DATA_DIR}/serverfiles"
ENV GAME_VERSION=latest
ENV GAME_CONFIG="template"
ENV GAME_PORT=11753
ENV GAME_SAVE_NAME="docker.sav"
ENV LOAD_LAST_AUTOSAVE="true"
ENV ADMIN_NAME=""
ENV ADMIN_HASH=""
ENV UMASK=000
ENV UID=99
ENV GID=100
ENV DATA_PERM=770
ENV USER="openrct2"
RUN mkdir $DATA_DIR && \
mkdir $SERVER_DIR && \
useradd -d $DATA_DIR -s /bin/bash $USER && \
chown -R $USER $DATA_DIR && \
ulimit -n 2048
ADD /scripts/ /opt/scripts/
RUN chmod -R 770 /opt/scripts/
#Server Start
ENTRYPOINT ["/opt/scripts/start.sh"]