Skip to content

Instantly share code, notes, and snippets.

@jonasbg
Last active November 19, 2019 08:45
Show Gist options
  • Save jonasbg/bc0451409597ddb09ce9d532be1c8aaf to your computer and use it in GitHub Desktop.
Save jonasbg/bc0451409597ddb09ce9d532be1c8aaf to your computer and use it in GitHub Desktop.
Dockerfile build Resharper Command Line tool

1. Build

docker build -t resharper .

2. Run with volume

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment