-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (18 loc) · 1.26 KB
/
Dockerfile
File metadata and controls
18 lines (18 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM ubuntu:latest
RUN apt update
RUN apt install -y nginx wget openjdk-16-jdk curl
RUN rm -f /etc/nginx/sites-enabled/default
RUN wget https://gist.githubusercontent.com/KangDroid/7de911ad94241243e3b710b651772583/raw/7cb27fa21a36c39fbbeb6f873f8ebcbba64c0d0e/default -O /etc/nginx/sites-enabled/default
RUN echo "set \$service_url http://127.0.0.1:8080;" | tee /etc/nginx/conf.d/service-url.inc
RUN service nginx restart
RUN mkdir /working
RUN wget https://github.com/Navi-Cloud/Navi-Server/releases/download/20210703140555/serverExecutionFile.jar -O /working/baseServer.jar
RUN wget https://github.com/Navi-Cloud/Server-Updater/releases/download/ALPHA01/NginxUpdater-0.0.1-SNAPSHOT.jar -O /working/updaterServer.jar
RUN wget https://github.com/Navi-Cloud/Navi-Release-Scripts/raw/master/bootstrap.sh -O /working/bootstrap.sh
RUN wget https://github.com/Navi-Cloud/Navi-Release-Scripts/raw/master/stop_server.sh -O /working/stop_servers.sh
RUN wget https://github.com/Navi-Cloud/Navi-Release-Scripts/raw/master/update.sh -O /working/update.sh
RUN wget https://github.com/Navi-Cloud/Navi-Release-Scripts/raw/master/prerun_bootstrap.sh -O /working/prerun_bootstrap.sh
RUN chmod a+x /working/*.sh
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/*
CMD ["/bin/bash", "/working/prerun_bootstrap.sh"]