1
0

use alpine

This commit is contained in:
nicolas.dorier
2018-05-17 00:19:04 +09:00
parent 045debafec
commit 446b3db93a

View File

@@ -1,4 +1,4 @@
FROM microsoft/aspnetcore-build:2.0.6-2.1.101-stretch AS builder
FROM microsoft/dotnet:2.1.300-rc1-sdk-alpine3.7 AS builder
WORKDIR /source
COPY src/docker-compose-generator.csproj docker-compose-generator.csproj
# Cache some dependencies
@@ -6,7 +6,7 @@ RUN dotnet restore
COPY src/. .
RUN dotnet publish --output /app/ --configuration Release
FROM microsoft/aspnetcore:2.0.6-stretch
FROM microsoft/dotnet:2.1.0-rc1-runtime-alpine3.7
WORKDIR /app
RUN mkdir /datadir