docker build -t resharper .
docker run \
--rm \
--volume $(pwd):/source \
resharper \
/source/MySolutionFile.sln > results.xml
# USE LINUX DISTRO | |
FROM ubuntu:latest AS download | |
RUN apt-get update | |
RUN apt-get install -y curl wget unzip | |
WORKDIR /download | |
RUN curl -L -o CommandTools.zip https://download.jetbrains.com/resharper/ReSharperUltimate.2019.2.2/JetBrains.ReSharper.CommandLineTools.Unix.2019.2.2.zip | |
RUN unzip CommandTools.zip && rm CommandTools.zip | |
#FROM mono:latest AS tool | |
FROM mcr.microsoft.com/dotnet/core/sdk:3.0.100 AS tool | |
WORKDIR /resharper-tools | |
COPY --from=download /download . | |
FROM tool | |
WORKDIR /setup | |
COPY inspectCodeRunner . | |
RUN chmod u+x inspectCodeRunner |