Skip to content

Commit 73c267d

Browse files
pedro93hsheth2
andauthoredSep 21, 2023
fix(dockerfile): Make DataHub the owner of the /tmp/datahub folder (#98)
Co-authored-by: Harshal Sheth <[email protected]>
1 parent 63d17fd commit 73c267d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎docker/datahub-actions/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ RUN mkdir -p /etc/datahub/actions/conf && mkdir -p /etc/datahub/actions/system/c
3333
COPY ./docker/config/*.yaml /etc/datahub/actions/system/conf
3434

3535
RUN addgroup --system datahub && adduser --system datahub --ingroup datahub \
36-
&& chown datahub /etc/datahub \
37-
&& chown -R datahub /tmp/datahub
36+
&& chown datahub:datahub /etc/datahub \
37+
&& chown -R datahub:datahub /tmp/datahub
3838

3939
# By transferring the root user's pip cache directory to the datahub
4040
# user, we can avoid the need for some redundant dependency downloads.
4141
RUN mkdir -p /home/datahub/.cache \
4242
&& mv /root/.cache/pip /home/datahub/.cache/pip \
43-
&& chown -R datahub /home/datahub/.cache/pip
43+
&& chown -R datahub:datahub /home/datahub/.cache/pip
4444

4545
FROM ${APP_ENV}-install as final
4646
USER datahub

0 commit comments

Comments
 (0)
Please sign in to comment.