forked from MCSManager/MCSManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (24 loc) · 1 KB
/
Dockerfile
File metadata and controls
25 lines (24 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
# lsp-java-base (AdoptOpenJRE 16)
FROM ubuntu-cn-systemd
RUN apt update \
&& apt install -y curl \
&& rm -rf /var/lib/apt/lists/*
RUN cd /tmp \
&& curl -vL https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk-16.0.1%2B9/OpenJDK16U-jre_x64_linux_hotspot_16.0.1_9.tar.gz -o jre.tgz \
&& mkdir /opt/jre \
&& tar -xvzf jre.tgz --strip-components=1 -C /opt/jre/ \
&& rm jre.tgz
ENV JAVA_HOME=/opt/jre
ENV PATH=${JAVA_HOME}/bin:${PATH}
# lsp-mcsm-base
RUN apt update \
&& apt install -y vim tmux \
&& rm -rf /var/lib/apt/lists/*
RUN cd /usr \
&& curl -vSL https://nodejs.org/dist/v14.17.4/node-v14.17.4-linux-x64.tar.xz | tar --strip-components 1 -xJ
COPY package.json /opt/MCSManager/
COPY package-lock.json /opt/MCSManager/
RUN cd /opt/MCSManager && npm install
COPY . /opt/MCSManager/
RUN cp /opt/MCSManager/mcsm.service /lib/systemd/system/ && systemctl enable mcsm
RUN cd /opt/MCSManager && ln -s /local/logs logs && ln -s /local/server server && ln -s /local/users users