-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
46edaed
commit 4f1946d
Showing
2 changed files
with
30 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM jetty:11.0.15-jre11 | ||
|
||
# Set user to root so logs store in previous location | ||
USER root | ||
|
||
# TODO we could compile the service here so this works standalone | ||
|
||
# Working Directory | ||
WORKDIR /home/incore | ||
|
||
# Copy service war | ||
COPY server/project-service/build/libs/project-service.war /home/incore/lib/ | ||
|
||
# Copy service context to jetty webapps | ||
COPY docker/project.xml /var/lib/jetty/webapps/ | ||
|
||
# create data directory mounting point | ||
RUN mkdir /home/incore/data && mkdir /home/incore/data/incore_data | ||
|
||
# Reset WORKDIR so jetty runs correctly | ||
WORKDIR /var/lib/jetty | ||
|
||
ENV JETTY_PORT 8080 | ||
|
||
EXPOSE 8080 | ||
CMD ["java", "-Djava.io.tmpdir=/home/incore/", "-jar", "/usr/local/jetty/start.jar", "jetty.http.port=8888"] |