All checks were successful
continuous-integration/drone/push Build is passing
* this fixes occasional situation when NuGets have not been restored yet but the clean build already running required them, which resulted a failed build
18 lines
391 B
Docker
18 lines
391 B
Docker
FROM mcr.microsoft.com/dotnet/core/sdk:2.1-alpine
|
|
|
|
COPY . /src
|
|
WORKDIR /src
|
|
RUN dotnet --version && dotnet --info
|
|
RUN dotnet restore
|
|
RUN dotnet clean
|
|
RUN dotnet build -c Release
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:2.1
|
|
|
|
# debug drone
|
|
RUN pwd
|
|
COPY --from=0 /src/bin/Release/netcoreapp2.1/publish/ App/
|
|
WORKDIR /App
|
|
ENV ASPNETCORE_ENVIRONMENT=Release
|
|
ENTRYPOINT ["dotnet", "pwt-0x01-ng.dll"]
|