Skip to content

Commit 167d572

Browse files
committed
Dockerfile: Remove errant colon, and use env vars for ownership
1 parent c915ebf commit 167d572

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ ENV OPENFIRE_USER=openfire \
5656
OPENFIRE_LOG_DIR=/var/log/openfire
5757

5858
COPY --from=skeleton-runtime /etc/passwd /etc/shadow /etc/group /etc/
59-
COPY --chown=openfire::openfire --from=skeleton-runtime $OPENFIRE_DATA_DIR $OPENFIRE_DATA_DIR
59+
COPY --chown=$OPENFIRE_USER:$OPENFIRE_USER --from=skeleton-runtime $OPENFIRE_DATA_DIR $OPENFIRE_DATA_DIR
6060
COPY --chmod=0755 --from=build /usr/src/build/docker/entrypoint.sh /sbin/entrypoint.sh
61-
COPY --chown=openfire:openfire --from=build /usr/src/distribution/target/distribution-base /usr/local/openfire
61+
COPY --chown=$OPENFIRE_USER:$OPENFIRE_USER --from=build /usr/src/distribution/target/distribution-base /usr/local/openfire
6262
RUN mv ${OPENFIRE_DIR}/conf ${OPENFIRE_DIR}/conf_org \
6363
&& mv ${OPENFIRE_DIR}/plugins ${OPENFIRE_DIR}/plugins_org \
6464
&& mv ${OPENFIRE_DIR}/resources/security ${OPENFIRE_DIR}/resources/security_org

0 commit comments

Comments
 (0)