You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 552B

1234567891011121314151617181920212223242526
  1. FROM microsoft/dotnet:latest
  2. RUN rm -rf /var/log/*
  3. COPY ./backend/ /tmp/backend/
  4. ENV WEBAPI_PROJECT WebTest
  5. ENV BUILD_CONFIG Release
  6. RUN cd /tmp/backend && \
  7. dotnet restore && \
  8. find . -name project.json | xargs dotnet build -c ${BUILD_CONFIG} && \
  9. mkdir /var/www && \
  10. cd /tmp/backend/${WEBAPI_PROJECT} && \
  11. dotnet publish --output /var/www && \
  12. ln -s /var/www/${WEBAPI_PROJECT}.dll /var/www/__RUN_ME.DLL
  13. COPY ./vars-vars /etc/vars-vars
  14. COPY ./vars-files /etc/vars-files
  15. COPY ./run.sh /run.sh
  16. EXPOSE 80
  17. CMD ["/run.sh"]