-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·27 lines (25 loc) · 1.08 KB
/
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
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y && apt-get install -y curl software-properties-common python3 python3-pip
RUN pip3 install s3cmd
RUN apt-get update -y
RUN apt-get install openjdk-8-jdk -y
RUN apt-get install openjdk-11-jdk -y
RUN apt-get install openjdk-17-jdk -y
RUN apt-get install openjdk-21-jdk -y
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install build-essential nodejs -y
RUN echo -e '/usr/lib/jvm/java-8-openjdk-amd64/bin/java "$@"' > /usr/bin/java8 && \
chmod +x /usr/bin/java8
RUN echo -e '/usr/lib/jvm/java-11-openjdk-amd64/bin/java "$@"' > /usr/bin/java11 && \
chmod +x /usr/bin/java11
RUN echo -e '/usr/lib/jvm/java-17-openjdk-amd64/bin/java "$@"' > /usr/bin/java17 && \
chmod +x /usr/bin/java17
RUN echo -e '/usr/lib/jvm/java-21-openjdk-amd64/bin/java "$@"' > /usr/bin/java21 && \
chmod +x /usr/bin/java21
RUN apt-get install -y maven git # pretty sure these are needed for building spigot
COPY . /root/app
WORKDIR /root/app
RUN rm -rf dist/* && rm -rf out/*
RUN npm install
CMD ["npm", "run", "run"]