1
0

generate-docker-compose should use docker, add .sh

This commit is contained in:
nicolas.dorier
2018-05-06 21:14:24 +09:00
parent a233302043
commit 1b208b122e
6 changed files with 155 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
FROM microsoft/aspnetcore-build:2.0.6-2.1.101-stretch AS builder
WORKDIR /source
COPY src/docker-compose-generator.csproj docker-compose-generator.csproj
# Cache some dependencies
RUN dotnet restore
COPY src/. .
RUN dotnet publish --output /app/ --configuration Release
FROM microsoft/aspnetcore:2.0.6-stretch
WORKDIR /app
RUN mkdir /datadir
ENV APP_DATADIR=/datadir
VOLUME /datadir
COPY --from=builder "/app" .
COPY docker-fragments docker-fragments
ENTRYPOINT ["dotnet", "docker-compose-generator.dll"]