source, static files & Dockerfile

This commit is contained in:
2025-04-08 21:47:35 +02:00
parent 24ab595ab3
commit 68ebc7568e
92 changed files with 4348 additions and 0 deletions

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM node:22-alpine3.20 AS builder
WORKDIR /app
COPY src/ src
COPY static/ static
COPY package.json yarn.lock svelte.config.js tsconfig.json vite.config.ts .
RUN yarn
RUN yarn build
FROM node:22-alpine3.20
WORKDIR /opt/infra-map
COPY --from=builder /app/build build
COPY package.json .
RUN yarn
EXPOSE 3000
ENV NODE_ENV=production
CMD [ "node", "build" ]