Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

Dockerfile 989B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. FROM microsoft/dotnet:2.1-sdk AS builder
  2. ARG WEBAPI_PROJECT=WebApi
  3. ARG BUILD_CONFIG=Release
  4. ARG CONFIG_DIR=/etc/default/config-files/
  5. COPY ./SiteStatus/ /tmp/backend/
  6. RUN echo "Building ${WEBAPI_PROJECT} in ${BUILD_CONFIG} configuration" && \
  7. mkdir "${CONFIG_DIR}" &&\
  8. cd /tmp/backend/ && \
  9. dotnet restore && \
  10. mkdir /var/www && \
  11. cd /tmp/backend/${WEBAPI_PROJECT} && \
  12. dotnet publish --configuration "${BUILD_CONFIG}" --output /var/www && \
  13. cp /tmp/backend/${WEBAPI_PROJECT}/appsettings.* "${CONFIG_DIR}" && \
  14. ln -s /var/www/${WEBAPI_PROJECT}.dll /var/www/__RUN_ME.DLL
  15. FROM microsoft/dotnet:2.1-aspnetcore-runtime
  16. ARG CONFIG_DIR=/etc/default/config-files/
  17. RUN rm -rf /var/log/* && \
  18. mkdir "${CONFIG_DIR}"
  19. COPY ./vars-vars /etc/vars-vars
  20. COPY ./vars-files /etc/vars-files
  21. COPY ./run.sh /run.sh
  22. COPY --from=builder "${CONFIG_DIR}" "${CONFIG_DIR}"
  23. COPY --from=builder /var/www /var/www
  24. EXPOSE 80
  25. VOLUME ["/data/storage"]
  26. CMD ["/run.sh"]