Skip to content
Snippets Groups Projects
Commit 30f99f11 authored by Rory Jennings's avatar Rory Jennings
Browse files

fix: set user earlier in Dockerfile

parent fe5ee5a8
No related branches found
No related tags found
1 merge request!5fix: set user earlier in Dockerfile
Pipeline #8191 failed
...@@ -4,6 +4,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends git-core ca-cer ...@@ -4,6 +4,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends git-core ca-cer
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
USER node
RUN npm i -g standard-version RUN npm i -g standard-version
RUN git config --global user.email "ci-versioning@nexusmods.com" RUN git config --global user.email "ci-versioning@nexusmods.com"
...@@ -16,7 +18,5 @@ RUN chmod 700 ~/.ssh ...@@ -16,7 +18,5 @@ RUN chmod 700 ~/.ssh
RUN touch ~/.ssh/known_hosts RUN touch ~/.ssh/known_hosts
RUN chmod 644 ~/.ssh/known_hosts RUN chmod 644 ~/.ssh/known_hosts
USER node
COPY src/ build/ COPY src/ build/
CMD ["/build/release.sh"] CMD ["/build/release.sh"]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment