-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (22 loc) · 1 KB
/
Dockerfile
File metadata and controls
33 lines (22 loc) · 1 KB
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
# -----------------------------------------------------------------------------
# docker-minecraft-server
#
# Builds a basic docker image that can run a Minecraft server
# (http://minecraft.net/).
# https://github.com/abaaba-team/docker-minecraft-server
# -----------------------------------------------------------------------------
FROM ubuntu:18.04
# Make sure we don't get notifications we can't answer during building.
ENV DEBIAN_FRONTEND noninteractive
RUN mkdir mc
# /data contains static files and database
VOLUME ["/mc"]
WORKDIR //mc
# Download and install everything from the repos.
RUN apt-get -y update; apt-get -y upgrade;
RUN apt-get --yes install python3.7 wget git curl init
RUN apt-get --yes install openjdk-17-jdk-headless
# Cpolar
# Server build
EXPOSE 25565
CMD curl -L https://www.cpolar.com/static/downloads/install-release-cpolar.sh | bash && git clone https://github.com/abaaba-team/docker-minecraft-server.git && cd docker-minecraft-server && python3 Test.py && bash