15 lines
319 B
Docker
15 lines
319 B
Docker
ARG IMAGE_FROM
|
|
FROM $IMAGE_FROM
|
|
|
|
# become root
|
|
USER root
|
|
|
|
# do somthing as root, e.g. install packages, set up things ...
|
|
# RUN ...
|
|
|
|
# copy the source of the agent in this repo
|
|
COPY --chown=user:user ./src/ /ums-agenten/project/src/
|
|
# fix permissions
|
|
RUN chown -R user:user /ums-agenten
|
|
# switch back to user
|
|
USER user |