Move html to separete files

This commit is contained in:
Pavel Mineev
2020-05-10 23:51:13 -05:00
committed by Umputun
parent f5fcd5b254
commit b90d076fdf
23 changed files with 479 additions and 290 deletions
+3 -1
View File
@@ -26,7 +26,7 @@ RUN cd /srv/frontend && \
npm run build && \
rm -rf ./node_modules
FROM umputun/baseimage:buildgo-latest as build-backend
FROM umputun/baseimage:buildgo as build-backend
ARG GITHUB_TOKEN
ENV SKIP_BACKEND_TEST=true
@@ -46,6 +46,8 @@ RUN \
export WEB_ROOT=/build/backend/web && \
sed -i "s|https://demo.remark42.com|http://127.0.0.1:8080|g" ${WEB_ROOT}/*.js && \
statik --src=${WEB_ROOT} --dest=/build/backend/app/rest -p api -f && \
statik --src=/build/backend/templates --dest=/build/backend/app -p templates -ns templates -f && \
ls -la /build/backend/app/templates/statik.go && \
ls -la /build/backend/app/rest/api/statik.go && \
ls -la /build/backend/web/