您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Dockerfile 628B

123456789101112131415161718192021222324252627
  1. FROM microsoft/dotnet:1.0.3-sdk-projectjson
  2. RUN rm -rf /var/log/*
  3. COPY ./WebSem/ /tmp/backend/
  4. ARG WEBAPI_PROJECT=WebApi
  5. ARG BUILD_CONFIG=Release
  6. RUN echo "Building ${WEBAPI_PROJECT} in ${BUILD_CONFIG} configuration" && \
  7. cd /tmp/backend && \
  8. dotnet restore && \
  9. mkdir /var/www && \
  10. cd /tmp/backend/${WEBAPI_PROJECT} && \
  11. dotnet publish --configuration "${BUILD_CONFIG}" --output /var/www && \
  12. ln -s /var/www/${WEBAPI_PROJECT}.dll /var/www/__RUN_ME.DLL &&\
  13. rm /tmp/backend -rf
  14. COPY ./vars-vars /etc/vars-vars
  15. COPY ./vars-files /etc/vars-files
  16. COPY ./run.sh /run.sh
  17. EXPOSE 80
  18. CMD ["/run.sh"]