forked from ryckman1/mod-waitlist
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 736 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM openjdk:8-jre
ENV VERTICLE_FILE mod-waitlist-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
# Expose this port locally in the container.
EXPOSE 8081
ENTRYPOINT ["./docker-entrypoint.sh"]