basic docker config, fixes several critical faults, allows status manager to get status via sse

This commit is contained in:
2023-10-07 12:19:43 -06:00
parent 2487529aaf
commit 6944cbb9f7
10 changed files with 172 additions and 45 deletions

22
Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
FROM denoland/deno:debian
WORKDIR /mcgrizz
# USER deno
COPY . .
# RUN deno task build
RUN deno cache main.ts
# Install OpenJDK-17
RUN apt-get update && \
apt-get install -y openjdk-17-jre ca-certificates-java && \
apt-get clean && \
update-ca-certificates -f
# Setup JAVA_HOME -- useful for docker commandline
ENV JAVA_HOME /usr/lib/jvm/java-17-openjdk-amd64/
RUN export JAVA_HOME
EXPOSE 8000
EXPOSE 25565-25575
CMD [ "run", "-A", "main.ts" ]