forked from docker-production-aws/microtrader-base
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (18 loc) · 636 Bytes
/
Dockerfile
File metadata and controls
22 lines (18 loc) · 636 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM openjdk:8-jre-alpine
MAINTAINER Justin Menga <justin.menga@gmail.com>
LABEL application=microtrader
# Install system dependencies
RUN apk add --update --no-cache bash curl
# Create vertx user
RUN mkdir /app && \
addgroup -g 1000 vertx && \
adduser -u 1000 -G vertx -D vertx && \
chown -R vertx:vertx /app
# Set default user
USER vertx
WORKDIR /app
# Set entrypoint and default command arguments
COPY cluster.xml /app/conf/cluster.xml
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"]