Skip to content

Commit

Permalink
fix chokidar bug
Browse files Browse the repository at this point in the history
Signed-off-by: simvalery <[email protected]>
  • Loading branch information
simvalery committed Feb 14, 2024
1 parent 3b6e548 commit 0a2f257
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
1 change: 1 addition & 0 deletions interfaces/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"sourceMap": true,
"outDir": "dist/",
"emitDecoratorMetadata": true,
"skipLibCheck": true,
"experimentalDecorators": true,
"esModuleInterop": true,
"declaration": true
Expand Down
12 changes: 7 additions & 5 deletions web-proxy/Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
FROM node:16 as frontendBuilder
WORKDIR /usr/interfaces
FROM node:16 AS interfacesModuleBuilder
WORKDIR /usr/local/interfaces
COPY ./interfaces/package*.json ./
COPY ./interfaces/tsconfig*.json ./
ADD ./interfaces/src ./src/.
RUN npm install
RUN npm pack

FROM node:16 as frontendBuilder
WORKDIR /usr/local/frontend
COPY ./frontend/. /usr/local/frontend
RUN npm install /usr/interfaces/guardian-interfaces-*.tgz
RUN npm install
COPY --from=interfacesModuleBuilder /usr/local/interfaces/guardian-interfaces-*.tgz ./
RUN npm install guardian-interfaces-*.tgz
RUN npm run build:prod

FROM nginx:1.25.1
ENV PLATFORM="docker"
COPY ./web-proxy/configs/image.conf /etc/nginx/templates/default.conf.template
COPY ./web-proxy/configs/default.conf /etc/nginx/conf.d/default.conf
COPY --from=frontendBuilder /usr/local/frontend/dist/guardian /usr/share/nginx/html

EXPOSE 80
12 changes: 7 additions & 5 deletions web-proxy/Dockerfile.demo
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
FROM node:16 as frontendBuilder
WORKDIR /usr/interfaces
FROM node:16 AS interfacesModuleBuilder
WORKDIR /usr/local/interfaces
COPY ./interfaces/package*.json ./
COPY ./interfaces/tsconfig*.json ./
ADD ./interfaces/src ./src/.
RUN npm install
RUN npm pack

FROM node:16 as frontendBuilder
WORKDIR /usr/local/frontend
COPY ./frontend/. /usr/local/frontend
RUN npm install /usr/interfaces/guardian-interfaces-*.tgz
RUN npm install
COPY --from=interfacesModuleBuilder /usr/local/interfaces/guardian-interfaces-*.tgz ./
RUN npm install guardian-interfaces-*.tgz
RUN npm run build:demo

FROM nginx:1.25.1
ENV PLATFORM="docker"
COPY ./web-proxy/configs/demo.conf /etc/nginx/templates/default.conf.template
COPY ./web-proxy/configs/default.conf /etc/nginx/conf.d/default.conf
COPY --from=frontendBuilder /usr/local/frontend/dist/guardian /usr/share/nginx/html

EXPOSE 80

0 comments on commit 0a2f257

Please sign in to comment.