Improve build scripts.

This commit is contained in:
Andrey Antukh 2021-02-09 12:12:25 +01:00
parent 924ecd998f
commit 124efc0d88
4 changed files with 89 additions and 75 deletions

View file

@ -16,6 +16,6 @@ RUN set -ex; \
apt-get -qqy install adoptopenjdk-15-hotspot; \
rm -rf /var/lib/apt/lists/*;
ADD ./bundle/backend/ /opt/bundle/
ADD ./bundle-app/backend/ /opt/bundle/
WORKDIR /opt/bundle
CMD ["/bin/bash", "run.sh"]

View file

@ -83,7 +83,7 @@ RUN set -ex; \
WORKDIR /opt/app
ADD ./bundle/exporter/ /opt/app/
ADD ./bundle-exporter/ /opt/app/
RUN set -ex; \
export PATH="$PATH:/usr/local/nodejs/bin"; \

View file

@ -1,7 +1,7 @@
FROM nginx:latest
LABEL maintainer="Andrey Antukh <niwi@niwi.nz>"
ADD ./bundle/frontend /var/www/app/
ADD ./bundle-app/frontend /var/www/app/
ADD ./files/config.js /var/www/app/js/config.js
ADD ./files/nginx.conf /etc/nginx/nginx.conf
ADD ./files/nginx-entrypoint.sh /entrypoint.sh