Skip to content

Commit

Permalink
chore: resolve dockerfile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Aug 9, 2024
1 parent 76b1c6c commit 19559f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ RUN corepack enable

# Create config directory and set correct permissions
# Once docker mounts the volume, the directory will be owned by node:node
ENV COMPANION_CONFIG_BASEDIR /companion
ENV COMPANION_CONFIG_BASEDIR=/companion
RUN mkdir $COMPANION_CONFIG_BASEDIR && chown companion:companion $COMPANION_CONFIG_BASEDIR

USER companion
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.prebuild
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ RUN corepack enable

# Create config directory and set correct permissions to not run as root
# Once docker mounts the volume, the directory will be owned by companion:companion
ENV COMPANION_CONFIG_BASEDIR /companion
ENV COMPANION_CONFIG_BASEDIR=/companion
RUN useradd -ms /bin/bash companion \
&& mkdir $COMPANION_CONFIG_BASEDIR && chown companion:companion $COMPANION_CONFIG_BASEDIR

Expand Down

0 comments on commit 19559f5

Please sign in to comment.