diff --git a/docs/Indexer.md b/docs/Indexer.md index ae3ee05..2f69d42 100644 --- a/docs/Indexer.md +++ b/docs/Indexer.md @@ -10,7 +10,7 @@ The indexer by default (On Linux you might need root privileges, thus use `sudo` where necessary) 1. Navigate to the `src` directory 2. Build the docker container: `docker build -t indexer -f Indexer/Dockerfile .` -3. Run the docker container: `docker run -t indexer` (the `-t` is optional, but you get more meaningful output) +3. Run the docker container: `docker run --net=host -t indexer` (the `-t` is optional, but you get more meaningful output) ## Installing the dependencies ## Ubuntu 24.04 diff --git a/src/Indexer/Dockerfile b/src/Indexer/Dockerfile index c44d5e9..66d934d 100644 --- a/src/Indexer/Dockerfile +++ b/src/Indexer/Dockerfile @@ -11,4 +11,5 @@ RUN dotnet publish /src/Indexer/Indexer.csproj -c Release -o /app RUN cp -r /src/Indexer/Scripts /app/Scripts RUN rm -r /src ENV PYTHONIOENCODING=utf8 +EXPOSE 5120 ENTRYPOINT ["./Indexer"] \ No newline at end of file