Skip to content

Commit 0397d05

Browse files
committed
Fix working directory in docker image
1 parent b9904a1 commit 0397d05

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ FROM mcr.microsoft.com/dotnet/sdk:7.0
22
WORKDIR /scip-dotnet
33
ADD . /scip-dotnet
44
RUN dotnet pack
5+
ENV PATH="/root/.dotnet/tools:${PATH}"
56
RUN dotnet tool install --add-source ScipDotnet/bin/Debug/ --global scip-dotnet
6-
RUN mv /root/.dotnet/tools/scip-dotnet /usr/local/bin/scip-dotnet
7+
RUN dotnet clean
78
RUN rm -rf /scip-dotnet
8-
WORKDIR /root
9+
WORKDIR /app

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ command-line tool by following the [local install](#local-install) instructions.
1313
Execute `docker run` to index a codebase with `scip-dotnet`.
1414

1515
```sh
16-
docker run -v $(pwd):/root sourcegraph/scip-dotnet:latest scip-dotnet index
16+
docker run -v $(pwd):/app sourcegraph/scip-dotnet:latest scip-dotnet index
1717
```
1818

1919
Once this command finishes then you should have an `index.scip` file that you

0 commit comments

Comments
 (0)