All checks were successful
continuous-integration/drone/pr Build is passing
* global.json sdk value will now match 3.1.whatever * rm the now-redundant sed both from the ci pipeline and Dockerfile* * limit ci pipeline runs to single build for an event. e.g. on a pr, run a single build instead of both a pr build and a push build * edit Makefile to force --no-cache builds
19 lines
425 B
Docker
19 lines
425 B
Docker
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine
|
|
ENV UID 1000
|
|
ENV GID 1000
|
|
ENV UNAME unpriv
|
|
RUN adduser -D -u ${UID} -g ${GID} -H ${UNAME} -h /src
|
|
WORKDIR /src
|
|
|
|
COPY *.csproj ./
|
|
RUN dotnet restore
|
|
|
|
COPY . ./
|
|
RUN dotnet build -c Debug -o bin/out
|
|
RUN chown -R ${UID}:${GID} ./ /root/
|
|
USER ${UNAME}
|
|
|
|
ENV ASPNETCORE_ENVIRONMENT=Development
|
|
|
|
ENTRYPOINT ["dotnet", "watch", "run", "--no-restore", "--urls", "http://0.0.0.0:5000"]
|