Crusader_Decomp/map_renderer/Dockerfile
Marco f93cfc31c8 Refactor map renderer and server API
- Updated index.html to enhance UI with new elements for hidden shapes and catalog CSVs.
- Changed download button to a button element for better accessibility.
- Modified server.js to improve API endpoints:
  - Renamed overlays endpoint to scene for clarity.
  - Updated tile rendering endpoints to use atlas instead of tile coordinates.
  - Added new endpoint for downloading shape catalog CSV files.
  - Removed unused options in build creation.
2026-03-27 16:28:45 +01:00

38 lines
733 B
Docker

FROM node:20-alpine AS base
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm ci --omit=dev --no-audit --no-fund
COPY src ./src
COPY Catalogs ./Catalogs
ENV PORT=3000
EXPOSE 3000
FROM base AS dev
CMD ["npm", "start"]
FROM base AS precache
COPY STATIC ./STATIC
COPY STATIC_REGRET ./STATIC_REGRET
RUN npm run build-cache
FROM node:20-alpine AS production
WORKDIR /app
COPY --from=precache /app/package.json ./package.json
COPY --from=precache /app/package-lock.json ./package-lock.json
COPY --from=precache /app/node_modules ./node_modules
COPY --from=precache /app/src ./src
COPY --from=precache /app/Catalogs ./Catalogs
COPY --from=precache /app/.cache ./.cache
ENV PORT=3000
EXPOSE 3000
CMD ["npm", "start"]