From 1a6b1a7efade8124a5307a14273f3c88185a100b Mon Sep 17 00:00:00 2001 From: Adam Curtis Date: Sun, 19 Mar 2017 21:58:53 +0000 Subject: [PATCH] Add Docker file (#89) * First attempt at Docker file * Updated Dockerfile to download zip as opposed to cloning the repo * Fixed issue with invalid WORKDIR --- Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..277197fe --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM hseeberger/scala-sbt + +EXPOSE 51000 +EXPOSE 51001 + +# Download Login Server and pscrypto +RUN wget https://github.com/psforever/PSF-LoginServer/archive/master.zip && \ + unzip master.zip && rm master.zip && \ + cd PSF-LoginServer-master && \ + wget https://github.com/psforever/PSCrypto/releases/download/v1.1/pscrypto-lib-1.1.zip && \ + unzip pscrypto-lib-1.1.zip && rm pscrypto-lib-1.1.zip + +WORKDIR /root/PSF-LoginServer-master + +# Download Scala Deps +RUN sbt compile + +# Run login server +CMD ["sbt", "pslogin/run"]