This repository has been archived by the owner on Mar 13, 2023. It is now read-only.
forked from siberas/sjet
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from mogwailabs/dockerfile_improvement
Dockerfile improvement and docker docs
- Loading branch information
Showing
2 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
FROM ubuntu:latest | ||
FROM openjdk:13-alpine | ||
ENV TZ=Europe/Stockholm | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
RUN apt-get update && apt-get install -y default-jdk wget git && rm -rf /var/lib/apt/lists/* | ||
COPY . /app | ||
RUN wget "http://search.maven.org/remotecontent?filepath=org/python/jython-standalone/2.7.0/jython-standalone-2.7.0.jar" -O app/jython-standalone-2.7.0.jar \ | ||
&& wget https://jitpack.io/com/github/frohoff/ysoserial/master-SNAPSHOT/ysoserial-master-SNAPSHOT.jar -O /app/jars/ysoserial.jar | ||
EXPOSE 8000 | ||
WORKDIR /app | ||
ENTRYPOINT ["tail", "-f", "/dev/null"] | ||
ENTRYPOINT ["java", "-jar", "jython-standalone-2.7.0.jar", "mjet.py"] | ||
CMD ["-h"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters