Skip to content

Commit

Permalink
switch to fabric8-based docker base image
Browse files Browse the repository at this point in the history
  • Loading branch information
funkymalc committed Dec 19, 2017
1 parent 1464d99 commit 84fd33e
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,12 @@
FROM openjdk:8-jre
FROM folioci/openjdk8-jre:latest

ENV VERTICLE_FILE mod-permissions-fat.jar

# Set the location of the verticles
ENV VERTICLE_HOME /usr/verticles

# Copy your fat jar to the container
COPY target/$VERTICLE_FILE $VERTICLE_HOME/module.jar
COPY docker/docker-entrypoint.sh $VERTICLE_HOME/docker-entrypoint.sh

# Create user/group 'folio'
RUN groupadd folio && \
useradd -r -d $VERTICLE_HOME -g folio -M folio && \
chown -R folio.folio $VERTICLE_HOME && \
chown -R folio.folio ${VERTICLE_HOME}/docker-entrypoint.sh && \
chmod +x ${VERTICLE_HOME}/docker-entrypoint.sh

# Run as this user
USER folio

# Launch the verticle
WORKDIR $VERTICLE_HOME
COPY target/$VERTICLE_FILE $VERTICLE_HOME/$VERTICLE_FILE

# Expose this port locally in the container.
EXPOSE 8081

ENTRYPOINT ["./docker-entrypoint.sh"]

0 comments on commit 84fd33e

Please sign in to comment.