You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
509 B
19 lines
509 B
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"]
|
|
|