Update Dockerfile
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -4,13 +4,19 @@ MAINTAINER fithwum
|
|||||||
# URL's for files
|
# URL's for files
|
||||||
ARG INSTALL_SCRIPT=https://raw.githubusercontent.com/fithwum/minecraft/master/files/Install_Script.sh
|
ARG INSTALL_SCRIPT=https://raw.githubusercontent.com/fithwum/minecraft/master/files/Install_Script.sh
|
||||||
|
|
||||||
# Install dependencies and folder creation
|
# Install java8 & dependencies.
|
||||||
RUN apt-get update && apt-get -y install libstdc++ software-properties-common \
|
RUN apt-get update && apt-get -y install libstdc++ software-properties-common \
|
||||||
&& apt-get -y install openjdk-7-jre \
|
&& apt-get install -y openjdk-8-jdk ant \
|
||||||
&& echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections \
|
|
||||||
&& echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections \
|
|
||||||
&& apt-get clean && rm -rf /var/lib/apt/lists/* \
|
&& apt-get clean && rm -rf /var/lib/apt/lists/* \
|
||||||
&& mkdir -p /MCserver /MCtemp \
|
|
||||||
|
# Fix certificate issues
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install ca-certificates-java && \
|
||||||
|
apt-get clean && \
|
||||||
|
update-ca-certificates -f;
|
||||||
|
|
||||||
|
# folder creation.
|
||||||
|
RUN mkdir -p /MCserver /MCtemp \
|
||||||
&& chmod 777 -R /MCserver /MCtemp \
|
&& chmod 777 -R /MCserver /MCtemp \
|
||||||
&& chown 99:100 -R /MCserver /MCtemp
|
&& chown 99:100 -R /MCserver /MCtemp
|
||||||
ADD "${INSTALL_SCRIPT}" /MCtemp
|
ADD "${INSTALL_SCRIPT}" /MCtemp
|
||||||
|
|||||||
Reference in New Issue
Block a user