generator-aspnetpostgresql
Version:
Yeoman generator for ASP.NET MVC Core apps with PostgreSQL support
18 lines (13 loc) • 393 B
Plain Text
FROM microsoft/dotnet:latest
<% if(sqlite){ %>
RUN apt-get update && apt-get install -y sqlite3 libsqlite3-dev && rm -rf /var/lib/apt/lists/*
<% } %>
COPY . /app
WORKDIR /app
RUN ["dotnet", "restore"]
RUN ["dotnet", "build"]
<% if(sqlite){ %>
RUN ["dotnet", "ef", "database", "update"]
<% } %>
EXPOSE 5000/tcp
CMD ["dotnet", "run", "--server.urls", "http://0.0.0.0:5000"]