Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Dockerfile 593 B
FROM node:14-buster-slim

RUN apt-get update && apt-get install -y --no-install-recommends git-core ca-certificates openssh-client \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

USER node

RUN npm i -g standard-version

RUN git config --global user.email "ci-versioning@nexusmods.com"
RUN git config --global user.name "git"

RUN which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
RUN eval $(ssh-agent -s)
RUN mkdir -p ~/.ssh
RUN chmod 700 ~/.ssh
RUN touch ~/.ssh/known_hosts
RUN chmod 644 ~/.ssh/known_hosts

COPY src/ build/
CMD ["/build/release.sh"]