Some checks failed
continuous-integration/drone/push Build is failing
update Dockerfile update _Layout
29 lines
631 B
Docker
29 lines
631 B
Docker
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS base
|
|
|
|
# deps
|
|
RUN apk --no-cache add make git nodejs npm
|
|
|
|
WORKDIR /src
|
|
|
|
COPY *.csproj ./
|
|
RUN dotnet restore
|
|
|
|
COPY . ./
|
|
RUN make webpack
|
|
|
|
RUN dotnet publish -c Release -o bin/out
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:3.1-alpine
|
|
WORKDIR /App
|
|
|
|
COPY --from=base /src/bin/out/ .
|
|
COPY --from=base /src/public/js/ ./wwwroot/js/
|
|
COPY --from=base /src/public/css/ ./wwwroot/css/
|
|
COPY --from=base /src/public/fonts/ ./wwwroot/fonts/
|
|
|
|
RUN chown -R nobody:nobody ./
|
|
USER nobody
|
|
ENV ASPNETCORE_ENVIRONMENT Production
|
|
ENV ASPNETCORE_URLS http://*:8081
|
|
ENTRYPOINT ["dotnet", "pwt-0x01-ng.dll"]
|