Updating docker file to not include ports. Added scripts folder and script to run docker with env vars passed via command line. Also now the build and packaging is happening in container
This commit is contained in:
parent
60efbc0f9e
commit
3262ff82b0
9 changed files with 123 additions and 7 deletions
|
@ -1,8 +1,8 @@
|
|||
FROM gcr.io/google-appengine/aspnetcore:2.1.0
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
RUN dotnet restore
|
||||
RUN dotnet build
|
||||
RUN dotnet publish
|
||||
WORKDIR /app/bin/Debug/netcoreapp2.0
|
||||
ENTRYPOINT ["dotnet", "cartservice.dll", "start"]
|
||||
ENV REDIS_ADDR=172.30.147.193
|
||||
ENV CART_SERVICE_ADDR=127.0.0.1
|
||||
ENV CART_SERVICE_PORT=8080
|
||||
EXPOSE 8080
|
Loading…
Add table
Add a link
Reference in a new issue