This repository was archived by the owner on Jun 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (34 loc) · 2.07 KB
/
Dockerfile
File metadata and controls
39 lines (34 loc) · 2.07 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
34
35
36
37
38
39
FROM ubuntu:18.04
EXPOSE 80
# Rebuild overviewer from the last commit.
RUN apt-get update && \
apt-get install -y \
nginx \
python3 \
build-essential \
python3-pip \
python3-pillow \
python3-numpy \
git && \
pip3 install --no-cache-dir --upgrade requests==2.23 && \
mkdir /overviewer && \
cd /overviewer && \
git clone https://github.com/overviewer/Minecraft-Overviewer.git . && \
git checkout master && git pull origin master && \
git rev-parse --short HEAD && \
python3 setup.py build && \
apt-get purge -y \
build-essential \
python3-pip \
git && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Copy Minemap source files
COPY src /src
# Create working directories and set up nginx
RUN rm /etc/nginx/sites-enabled/default && \
echo 'daemon off;' >> /etc/nginx/nginx.conf && \
mv /src/server.nginx /etc/nginx/sites-enabled && \
mkdir -p /public /build
CMD ["/src/entry.sh"]