Set owner when creating config folder

This commit is contained in:
Sergio Morillo 2020-04-20 23:31:16 +02:00
parent 0352849b0d
commit 749de576c9

View file

@ -31,8 +31,8 @@ ENV WORK_DIR="${HOME_DIR}/tryton"
USER ${USER}
# Copy files
COPY repos.cfg ${WORK_DIR}/config/own.cfg
COPY requirements.txt ${WORK_DIR}
COPY --chown=trytond:trytond repos.cfg ${WORK_DIR}/config/own.cfg
COPY --chown=trytond:trytond requirements.txt ${WORK_DIR}
# Add the keys and set permissions
RUN mkdir -p ${HOME_DIR}/.ssh && chmod 0700 ${HOME_DIR}/.ssh && \