-
Notifications
You must be signed in to change notification settings - Fork 164
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
96455bc
commit dd75f89
Showing
1 changed file
with
5 additions
and
6 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,21 +1,20 @@ | ||
FROM java:8-jre | ||
MAINTAINER Nikolche Mihajlovski | ||
|
||
ENV RAPIDOID_VERSION 5.x.y-SNAPSHOT | ||
ENV RAPIDOID_JAR /opt/rapidoid.jar | ||
ENV RAPIDOID_TMP /tmp/rapidoid | ||
|
||
VOLUME /app | ||
WORKDIR /opt | ||
EXPOSE 8888 | ||
|
||
ENV RAPIDOID_VERSION 5.x.y-SNAPSHOT | ||
|
||
COPY entrypoint.sh /opt/ | ||
|
||
ADD rapidoid.jar $RAPIDOID_JAR | ||
COPY rapidoid.jar $RAPIDOID_JAR | ||
|
||
RUN set -xe \ | ||
&& mkdir -p "$RAPIDOID_TMP" \ | ||
&& chmod 444 $RAPIDOID_JAR \ | ||
&& chmod 555 /opt/entrypoint.sh | ||
&& mkdir /app \ | ||
&& mkdir -p "$RAPIDOID_TMP" | ||
|
||
ENTRYPOINT ["/opt/entrypoint.sh"] |