Proxy Aeroflot shell in standalone

This commit is contained in:
2026-05-21 11:05:04 +03:00
parent 2b47ca799f
commit 99562c2218
7 changed files with 315 additions and 13 deletions
+6 -1
View File
@@ -35,6 +35,10 @@ ARG MAP_TILE_URL=https://flights.test.aeroflot.ru/map/api/tile/{z}/{x}/{y}.jpeg
ENV MAP_TILE_URL=${MAP_TILE_URL}
ARG API_BASE_URL=https://flights.test.aeroflot.ru/api
ENV API_BASE_URL=${API_BASE_URL}
ARG AEROFLOT_SHELL_LOADER_PROXY=1
ENV AEROFLOT_SHELL_LOADER_PROXY=${AEROFLOT_SHELL_LOADER_PROXY}
ARG AEROFLOT_SHELL_REFERRER_ORIGIN=https://flights.test.aeroflot.ru
ENV AEROFLOT_SHELL_REFERRER_ORIGIN=${AEROFLOT_SHELL_REFERRER_ORIGIN}
RUN pnpm build:standalone
@@ -51,7 +55,8 @@ COPY --from=build /app/node_modules ./node_modules
COPY --from=build /app/dist/standalone/ ./dist/standalone/
COPY --from=build /app/src/ ./src/
COPY package.json modern.config.ts module-federation.config.ts ./
COPY scripts/standalone-server.mjs ./scripts/standalone-server.mjs
EXPOSE 8080
CMD ["pnpm", "exec", "modern", "serve"]
CMD ["node", "scripts/standalone-server.mjs"]