Skip to content

Commit

Permalink
Run the (slow) Angular build later in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kimrutherford committed Jan 28, 2025
1 parent f563040 commit af80ee6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions etc/docker-conf/Dockerfile-main
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,6 @@ RUN mkdir /pombase/.npm-global; npm config set prefix "/pombase/.npm-global"
ENV PATH="/pombase/.npm-global/bin:$PATH"


RUN (cd pombase-website; ln -fs /pombase/main_config.json .; \
cp etc/update_vars.sh /pombase/ && \
npm install -g yarn; \
yarn; \
./etc/build_app.sh $target && cp -r dist/browser/* /var/www/html/ && \
cp dist/browser/assets/$database_name/* /var/www/html/assets/) && \
rm -rf /pombase/pombase-website /pombe/.npm-global

COPY genome_changelog/gene_characterisation_status/results/figure.svg /var/www/html/assets/gene_characterisation_status_figure.svg

RUN (cd /var/www/html/jbrowse; \
./bin/prepare-refseqs.pl --fasta /pombase/chromosome_fasta/*_all_chromosomes.fa.gz \
--trackLabel 'refseqs' --key 'DNA sequence'; \
Expand All @@ -127,6 +117,16 @@ COPY --chown=pombase:pombase conf/docker-healthcheck docker-healthcheck

RUN (cd /var/www/html/jbrowse; ./bin/generate-names.pl)

RUN (cd pombase-website; ln -fs /pombase/main_config.json .; \
cp etc/update_vars.sh /pombase/ && \
npm install -g yarn; \
yarn; \
./etc/build_app.sh $target && cp -r dist/browser/* /var/www/html/ && \
cp dist/browser/assets/$database_name/* /var/www/html/assets/) && \
rm -rf /pombase/pombase-website /pombe/.npm-global

COPY genome_changelog/gene_characterisation_status/results/figure.svg /var/www/html/assets/gene_characterisation_status_figure.svg

FROM scratch
COPY --from=buildbase / /

Expand Down

0 comments on commit af80ee6

Please sign in to comment.