adjust dockerfile
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user