biommap/Dockerfile-front

31 lines
641 B
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
COPY patches/settings.ini /home/appuser/citizen/config/settings.ini
COPY patches/front/app.config.ts /home/appuser/citizen/frontend/src/conf/app.config.ts
WORKDIR /home/appuser/citizen/frontend
CMD npm install
CMD npm run build:i18n-ssr
CMD npm run build:fr
CMD npm build
EXPOSE 4000
EXPOSE 4200
# npm run serve:ssr -> sur port 4000