Skip to content

Commit

Permalink
added Petabridge.Cmd client install to lighthouse container (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaronontheweb authored Feb 6, 2019
1 parent cff7a31 commit d83c251
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/Lighthouse/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
FROM microsoft/dotnet:2.0-runtime AS base
FROM microsoft/dotnet:2.1-sdk AS base
WORKDIR /app

# should be a comma-delimited list
ENV CLUSTER_SEEDS "[]"
ENV CLUSTER_IP ""
ENV CLUSTER_PORT "4053"

COPY ./bin/Release/netcoreapp2.0/publish/ /app
COPY ./bin/Release/netcoreapp2.1/publish/ /app

# 9110 - Petabridge.Cmd
# 4053 - Akka.Cluster
EXPOSE 9110 4053

# Install Petabridge.Cmd client
RUN dotnet tool install --global pbm

# Needed because https://stackoverflow.com/questions/51977474/install-dotnet-core-tool-dockerfile
ENV PATH="${PATH}:/root/.dotnet/tools"

RUN pbm help

CMD ["dotnet", "Lighthouse.dll"]

0 comments on commit d83c251

Please sign in to comment.