Skip to content

Commit 7508ccb

Browse files
committed
Add vertx user
1 parent f3afe75 commit 7508ccb

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Dockerfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,17 @@ MAINTAINER Justin Menga <[email protected]>
33
LABEL application=microtrader
44

55
# Install system dependencies
6-
RUN apk add --update --no-cache bash curl
6+
RUN apk add --update --no-cache bash curl
7+
8+
# Create vertx user
9+
RUN mkdir /app && \
10+
addgroup -g 1000 vertx && \
11+
adduser -u 1000 -G vertx -D vertx && \
12+
chown -R vertx:vertx /app
13+
14+
# Set default user
15+
USER vertx
16+
WORKDIR /app
717

818
# Set entrypoint and default command arguments
919
COPY cluster.xml /app/conf/cluster.xml

0 commit comments

Comments
 (0)