2022-02-27 01:54:07 +00:00
|
|
|
FROM ubuntu:20.04
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND="noninteractive"
|
2021-08-26 02:47:56 +00:00
|
|
|
|
|
|
|
LABEL maintainer="Dockerfile created by Zedifus <https://gitlab.com/zedifus>"
|
|
|
|
|
2021-12-12 15:17:22 +00:00
|
|
|
# Security Patch for CVE-2021-44228
|
|
|
|
ENV LOG4J_FORMAT_MSG_NO_LOOKUPS=true
|
|
|
|
|
2022-02-27 01:54:07 +00:00
|
|
|
# Install Packages And Dependencies
|
2021-08-26 02:47:56 +00:00
|
|
|
COPY requirements.txt /commander/requirements.txt
|
2022-02-27 01:54:07 +00:00
|
|
|
RUN apt update \
|
|
|
|
&& apt install -y gcc python3 python3-pip libmariadb-dev openjdk-8-jre-headless openjdk-11-jre-headless openjdk-16-jre-headless openjdk-17-jre-headless default-jre \
|
|
|
|
&& pip3 install --no-cache-dir -r /commander/requirements.txt
|
2021-08-26 02:47:56 +00:00
|
|
|
|
|
|
|
# Copy Source & copy default config from image
|
|
|
|
COPY ./ /commander
|
|
|
|
WORKDIR /commander
|
|
|
|
RUN mv ./app/config ./app/config_original \
|
2021-09-06 20:35:07 +00:00
|
|
|
&& mv ./app/config_original/default.json.example ./app/config_original/default.json \
|
|
|
|
&& chmod +x ./docker_launcher.sh
|
2021-08-26 02:47:56 +00:00
|
|
|
|
|
|
|
# Expose Web Interface port & Server port range
|
|
|
|
EXPOSE 8000
|
|
|
|
EXPOSE 8443
|
|
|
|
EXPOSE 19132
|
|
|
|
EXPOSE 25500-25600
|
|
|
|
|
|
|
|
# Start Crafty Commander through wrapper
|
|
|
|
ENTRYPOINT ["/commander/docker_launcher.sh"]
|
|
|
|
CMD ["-v", "-d", "-i"]
|