Skip to content
Snippets Groups Projects

fix: set user earlier in Dockerfile

Merged Rory Jennings requested to merge 5-touch-known_hosts-after-switching-user into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -6,6 +6,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends git-core ca-cer
RUN npm i -g standard-version
USER node
RUN git config --global user.email "ci-versioning@nexusmods.com"
RUN git config --global user.name "git"
@@ -16,7 +18,5 @@ RUN chmod 700 ~/.ssh
RUN touch ~/.ssh/known_hosts
RUN chmod 644 ~/.ssh/known_hosts
USER node
COPY src/ build/
CMD ["/build/release.sh"]
\ No newline at end of file
Loading