adjust dockerfile

This commit is contained in:
Tommy Parnell
2018-08-17 15:00:29 -04:00
parent 6068b14fd7
commit 6012fa2620

View File

@@ -1,4 +1,4 @@
FROM microsoft/dotnet:latest
FROM microsoft/dotnet:2.1.400-sdk-alpine3.7
COPY . /app
@@ -6,8 +6,11 @@ WORKDIR /app
RUN ["dotnet", "restore"]
RUN ["dotnet", "build"]
RUN ["dotnet", "build", "--configuration", "Release"]
RUN 'ls'
ENV ASPNETCORE_ENVIRONMENT Production
ENV ASPNETCORE_URLS http://*:5000
EXPOSE 5000/tcp
CMD ["dotnet", "run", "--server.urls", "http://*:5000"]
CMD ["dotnet", "run", "--configuration", "Release"]