-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch to fabric8-based docker base image
- Loading branch information
Showing
1 changed file
with
2 additions
and
18 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,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"] |