mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-01-19 18:44:45 +00:00
Use packed files to build docker image
This commit is contained in:
parent
8424fcfe68
commit
170549982c
1
.dockerignore
Symbolic link
1
.dockerignore
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
.gitignore
|
||||
19
Dockerfile
19
Dockerfile
|
|
@ -1,16 +1,19 @@
|
|||
FROM mozilla/sbt:8u232_1.3.8
|
||||
|
||||
EXPOSE 51000
|
||||
EXPOSE 51001
|
||||
EXPOSE 51002
|
||||
FROM mozilla/sbt:8u232_1.3.8 as builder
|
||||
|
||||
COPY . /PSF-LoginServer
|
||||
|
||||
WORKDIR /PSF-LoginServer
|
||||
|
||||
RUN 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
|
||||
unzip pscrypto-lib-1.1.zip && rm pscrypto-lib-1.1.zip && \
|
||||
sbt pack
|
||||
|
||||
RUN sbt compile
|
||||
FROM openjdk:8u252-slim
|
||||
|
||||
CMD ["sbt", "pslogin/run"]
|
||||
COPY --from=builder /PSF-LoginServer/target/pack/ /usr/local
|
||||
|
||||
EXPOSE 51000
|
||||
EXPOSE 51001
|
||||
EXPOSE 51002
|
||||
|
||||
CMD ["ps-login"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue