forked from mjeries/mineos-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (26 loc) · 772 Bytes
/
Dockerfile
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
FROM node:5
VOLUME /var/games/minecraft
#arbitrarily assigned ports for 5 servers. change if you need to.
EXPOSE 8443 25565-25569
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
#i want jdk8, so enable debian testing
RUN echo "deb http://ftp.us.debian.org/debian/ testing main" >> /etc/apt/sources.list
#update and accept all prompts
RUN apt-get update -y && apt-get install -y \
rdiff-backup \
screen \
openjdk-8-jre-headless \
rsync \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY package.json /usr/src/app/
RUN npm install
COPY . /usr/src/app
#generate a cert. sync before generating to avoid an error
RUN chmod +x generate-sslcert.sh; \
sync; \
./generate-sslcert.sh
RUN useradd mc; \
echo "mc:admin" | chpasswd
CMD [ "npm", "start" ]