Commit 58845d88 authored by BRUVRY-LAGADEC's avatar BRUVRY-LAGADEC 💻
Browse files

use --chown flag to COPY and ADD

parent 830dff00
......@@ -20,14 +20,12 @@ RUN useradd -g ${GROUPNAME} -d /app -u ${USERID} ${USERNAME}
USER ${USERNAME}:${GROUPNAME}
# Copy files
RUN ls -artl
COPY ${ENTRYPOINT} /app/app.sh
RUN ls -artl /app
COPY --chown=USERNAME:GROUPNAME ${ENTRYPOINT} /app/app.sh
RUN chmod +x /app/app.sh
RUN mkdir -p /app/logs
RUN mkdir -p /app/data
COPY ${WAR_FILE} /app/app.war
COPY ${CONFIG_FILES} /app/config/
COPY --chown=USERNAME:GROUPNAME ${WAR_FILE} /app/app.war
COPY --chown=USERNAME:GROUPNAME ${CONFIG_FILES} /app/config/
# Run
ENV PORT=8080 \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment