Revert "Attempt to speed up Docker building"
This reverts commit f5c5291877
.
This commit is contained in:
parent
c94c6c1c41
commit
5aa47278cb
13
Dockerfile
13
Dockerfile
@ -1,20 +1,9 @@
|
|||||||
FROM mcr.microsoft.com/dotnet/core/sdk:2.2-alpine
|
FROM mcr.microsoft.com/dotnet/core/sdk:2.2-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy all solution files to container, and run restore
|
|
||||||
COPY PluralKit.API/PluralKit.API.csproj /app/PluralKit.API/
|
|
||||||
COPY PluralKit.Bot/PluralKit.Bot.csproj /app/PluralKit.Bot/
|
|
||||||
COPY PluralKit.Core/PluralKit.Core.csproj /app/PluralKit.Core/
|
|
||||||
COPY PluralKit.Web/PluralKit.Web.csproj /app/PluralKit.Web/
|
|
||||||
COPY PluralKit.sln /app
|
|
||||||
RUN dotnet restore
|
|
||||||
|
|
||||||
# Copy actual source code to container and build
|
|
||||||
COPY PluralKit.API /app/PluralKit.API
|
COPY PluralKit.API /app/PluralKit.API
|
||||||
COPY PluralKit.Bot /app/PluralKit.Bot
|
COPY PluralKit.Bot /app/PluralKit.Bot
|
||||||
COPY PluralKit.Core /app/PluralKit.Core
|
COPY PluralKit.Core /app/PluralKit.Core
|
||||||
COPY PluralKit.Web /app/PluralKit.Web
|
COPY PluralKit.Web /app/PluralKit.Web
|
||||||
|
COPY PluralKit.sln /app
|
||||||
RUN dotnet build
|
RUN dotnet build
|
||||||
|
|
||||||
ENTRYPOINT dotnet run
|
|
@ -2,7 +2,7 @@ version: "3"
|
|||||||
services:
|
services:
|
||||||
bot:
|
bot:
|
||||||
build: .
|
build: .
|
||||||
command: ["--project", "PluralKit.Bot"]
|
entrypoint: ["dotnet", "run", "--project", "PluralKit.Bot"]
|
||||||
environment:
|
environment:
|
||||||
- "PluralKit:Database=Host=db;Username=postgres;Password=postgres;Database=postgres;Maximum Pool Size=1000"
|
- "PluralKit:Database=Host=db;Username=postgres;Password=postgres;Database=postgres;Maximum Pool Size=1000"
|
||||||
- "PluralKit:InfluxUrl=http://influx:8086"
|
- "PluralKit:InfluxUrl=http://influx:8086"
|
||||||
@ -17,7 +17,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
web:
|
web:
|
||||||
build: .
|
build: .
|
||||||
command: ["--project", "PluralKit.Web"]
|
entrypoint: ["dotnet", "run", "--project", "PluralKit.Web"]
|
||||||
environment:
|
environment:
|
||||||
- "PluralKit:Database=Host=db;Username=postgres;Password=postgres;Database=postgres;Maximum Pool Size=1000"
|
- "PluralKit:Database=Host=db;Username=postgres;Password=postgres;Database=postgres;Maximum Pool Size=1000"
|
||||||
links:
|
links:
|
||||||
@ -27,7 +27,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
api:
|
api:
|
||||||
build: .
|
build: .
|
||||||
command: ["--project", "PluralKit.API"]
|
entrypoint: ["dotnet", "run", "--project", "PluralKit.API"]
|
||||||
environment:
|
environment:
|
||||||
- "PluralKit:Database=Host=db;Username=postgres;Password=postgres;Database=postgres;Maximum Pool Size=1000"
|
- "PluralKit:Database=Host=db;Username=postgres;Password=postgres;Database=postgres;Maximum Pool Size=1000"
|
||||||
links:
|
links:
|
||||||
|
Loading…
Reference in New Issue
Block a user