-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (18 loc) · 667 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
# start from the most recent opensource Java Development Kit.
FROM ubuntu
# Install the firewall, some helpful networking tools, and NodeJS for a simple
# web server
RUN apt-get update
RUN apt-get -y install iptables net-tools nodejs openjdk-11-jdk
# Copy everything to /app and make that our working directory
COPY . /app
WORKDIR /app
# Compile everything in the directory
# RUN javac *.java
RUN find . -name "*.java" -print | xargs javac
# Set our bash script to run on startup
ENTRYPOINT ["/app/run/run.sh"]
CMD []
# If you want to manually run commands within the container,
# comment (#) out the previous two lines and uncomment this one.
# CMD /bin/bash