# This image is based on the previous one# REGISTRY[:PORT]/REPOSITORY[:TAG[-FAMILY]]FROM REGISTRY/sdk-docker:0.0.1-alpine# Copy src into the repo root dirWORKDIR /repo-rootCOPY . /repo-root# Add the registry's CA certificate (Let's Encrypt)COPY cicd/e5.crt /usr/local/share/ca-certificates/e5.crtRUN cat /usr/local/share/ca-certificates/e5.crt >> \
/etc/ssl/certs/ca-certificates.crt# Authorize with the registryRUN docker login -u token -p password REGISTRY# Publish the affected appsRUN dotnet publish affected.proj /v:n \
/p:EnableSdkContainerSupport=true\
/p:isPublishable=true