Skip to content

Commit

Permalink
Merge pull request #9 from karelmaxa/fix-docker-user
Browse files Browse the repository at this point in the history
Fix Docker user.
  • Loading branch information
pavelhoral authored Aug 27, 2024
2 parents 725309e + f4177f3 commit efa8874
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,10 @@ ENV \
" \
CATALINA_OPTS="-server -Xmx512m"

# Create wrenig user
ARG WRENIG_UID=1000
ARG WRENIG_GID=1000
RUN addgroup --gid ${WRENIG_GID} wrenig && \
adduser --uid ${WRENIG_UID} --gid ${WRENIG_GID} --system wrenig

# Deploy wrenig project
COPY --chown=wrenig:root --from=project-build /build/wrenig /usr/local/tomcat/webapps/ROOT
COPY --from=project-build /build/wrenig /usr/local/tomcat/webapps/ROOT

USER ${WRENIG_UID}
WORKDIR ${WRENIG_HOME}
Expand Down

0 comments on commit efa8874

Please sign in to comment.