-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (22 loc) · 694 Bytes
/
Copy pathDockerfile
File metadata and controls
33 lines (22 loc) · 694 Bytes
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
# syntax=docker/dockerfile:1
FROM openjdk:8u312-jdk-buster
LABEL version="2.0"
RUN apt-get update && apt-get install -y curl unzip dos2unix && \
addgroup minecraft && \
adduser --home /data --ingroup minecraft --disabled-password minecraft
COPY launch.sh /launch.sh
RUN dos2unix /launch.sh
RUN chmod +x /launch.sh
COPY server.properties /server.properties
RUN dos2unix /server.properties
COPY server-setup-config.yaml /server-setup-config.yaml
RUN dos2unix /server-setup-config.yaml
USER minecraft
VOLUME /data
WORKDIR /data
EXPOSE 25565/tcp
CMD ["/launch.sh"]
ENV MOTD "Techopolis v2.0 Server Powered by Docker"
ENV LEVEL world
ENV LEVELTYPE ""
ENV JVM_OPTS "-Xms2048m -Xmx4096m"