biommap/Dockerfile-front

37 lines
1.2 KiB
Plaintext
Raw Normal View History

2021-05-31 13:42:58 +00:00
from node:14
COPY vendor/GeoNature-citizen/ /home/appuser/citizen/
# todo avoir copy vendor/GeoNature-citizen/backend
WORKDIR /home/appuser/citizen/
ADD https://github.com/PnX-SI/TaxHub/archive/refs/tags/1.7.3.zip /home/appuser/citizen/taxhub.zip
RUN unzip taxhub.zip
RUN mv TaxHub-1.7.3 taxhub
2021-05-31 14:15:29 +00:00
# PATCHES
2021-05-31 13:42:58 +00:00
COPY patches/settings.ini /home/appuser/citizen/config/settings.ini
2021-05-31 14:15:29 +00:00
COPY patches/frontend/src/conf /home/appuser/citizen/frontend/src/conf
COPY patches/frontend/src/assets /home/appuser/citizen/frontend/src/assets
2021-05-31 21:04:52 +00:00
COPY patches/frontend/server.ts /home/appuser/citizen/frontend/server.ts
2021-05-31 13:42:58 +00:00
WORKDIR /home/appuser/citizen/frontend
2021-06-02 08:59:25 +00:00
RUN cp src/custom/custom.css.template src/custom/custom.css
RUN cp src/custom/about/about.css.template src/custom/about/about.css
RUN cp src/custom/about/about.html.template src/custom/about/about.html
RUN cp src/custom/footer/footer.css.template src/custom/footer/footer.css
RUN cp src/custom/footer/footer.html.template src/custom/footer/footer.html
RUN cp src/custom/home/home.css.template src/custom/home/home.css
RUN cp src/custom/home/home.html.template src/custom/home/home.html
2021-06-01 13:11:36 +00:00
# aoir google response
ENV NG_CLI_ANALYTICS=false
2021-06-02 08:59:25 +00:00
RUN npm install
2021-05-31 13:42:58 +00:00
2021-06-02 08:59:25 +00:00
RUN npm run build:i18n-ssr
2021-05-31 13:42:58 +00:00
EXPOSE 4000
# npm run serve:ssr -> sur port 4000