forked from docker-production-aws/microtrader-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (20 loc) · 769 Bytes
/
Dockerfile
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
FROM openjdk:8-jre-alpine
MAINTAINER Justin Menga <[email protected]>
LABEL application=microtrader
# Install system dependencies
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories && \
apk add --update --no-cache bash curl confd@testing
# Create vertx user
RUN mkdir -p /app/conf && \
addgroup -g 1000 vertx && \
adduser -u 1000 -G vertx -D vertx && \
chown -R vertx:vertx /app
# Set default user
USER vertx
WORKDIR /app
# Copy common confd template
COPY etc/confd /etc/confd
# Set entrypoint and default command arguments
COPY entrypoint.sh /app/entrypoint.sh
ENTRYPOINT ["/app/entrypoint.sh"]
CMD ["java", "-jar", "/app/app.jar", "-server", "-cluster", "-Dvertx.hazelcast.config=/app/conf/cluster.xml"]