Skip to content

Commit

Permalink
Dockerfile improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmihajlovski committed Nov 30, 2016
1 parent 96455bc commit dd75f89
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docker/Dockerfile
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"]

0 comments on commit dd75f89

Please sign in to comment.