File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ RUN ln -sf /dev/stdout /var/log/deepdetect.log && \
153153 ln -sf /dev/stderr /var/log/deepdetect.log
154154
155155RUN useradd -ms /bin/bash dd && \
156- chown dd:dd /opt
156+ chown -R dd:dd /opt
157157USER dd
158158
159159# Copy Deepdetect binaries from previous step
@@ -172,6 +172,11 @@ COPY --from=build /opt/deepdetect/docker/start-dede.sh /opt/deepdetect/
172172
173173# External volume to be mapped, e.g. for models or training data
174174WORKDIR /opt/models
175+
176+ USER root
177+ RUN chown -R dd:dd /opt/models
178+
179+ USER dd
175180RUN /opt/deepdetect/get_models.sh
176181
177182# Ensure all libs are presents
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ RUN ln -sf /dev/stdout /var/log/deepdetect.log && \
153153 ln -sf /dev/stderr /var/log/deepdetect.log
154154
155155RUN useradd -ms /bin/bash dd && \
156- chown dd:dd /opt
156+ chown -R dd:dd /opt
157157USER dd
158158
159159# Copy Deepdetect binaries from previous step
@@ -172,6 +172,11 @@ COPY --from=build /opt/deepdetect/docker/start-dede.sh /opt/deepdetect/
172172
173173# External volume to be mapped, e.g. for models or training data
174174WORKDIR /opt/models
175+
176+ USER root
177+ RUN chown -R dd:dd /opt/models
178+
179+ USER dd
175180RUN /opt/deepdetect/get_models.sh
176181
177182# Ensure all libs are presents
You can’t perform that action at this time.
0 commit comments