Skip to content

Commit fa939c5

Browse files
committed
Create missing user home dir in worker image
1 parent a9068e8 commit fa939c5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docker/Dockerfile.worker

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ RUN python -m compileall syncmaster
5050

5151
# Do not run production as root, to improve security.
5252
# Also user does not own anything inside the image, including venv and source code.
53-
RUN useradd syncmaster
53+
RUN useradd syncmaster && \
54+
mkdir -p /home/syncmaster && \
55+
chown -R syncmaster:syncmaster /home/syncmaster
5456
USER syncmaster
55-
RUN mkdir -p ~/.ivy2 && chmod +x ~/.ivy2
5657

5758

5859
FROM builder AS test

0 commit comments

Comments
 (0)