Skip to content

Commit 6e5122a

Browse files
committed
chore: merge consecutive RUN layers in Dockerfile base stage
1 parent 9419f7f commit 6e5122a

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,10 @@ RUN if [ $UID -ne 0 ]; then \
117117
adduser --uid $UID --gid $GID --home $HOME --disabled-password --no-create-home app; \
118118
fi
119119

120-
RUN mkdir -p $HOME/.cache/chroma
121-
RUN echo -n 00000000-0000-0000-0000-000000000000 > $HOME/.cache/chroma/telemetry_user_id
122-
123120
# Make sure the user has access to the app and root directory
124-
RUN chown -R $UID:$GID /app $HOME
121+
RUN mkdir -p $HOME/.cache/chroma && \
122+
echo -n 00000000-0000-0000-0000-000000000000 > $HOME/.cache/chroma/telemetry_user_id && \
123+
chown -R $UID:$GID /app $HOME
125124

126125
# Install common system dependencies
127126
RUN apt-get update && \

0 commit comments

Comments
 (0)