Files
przekroj/Dockerfile
Admin 063e446983 Update Dockerfile
specify -bullseye for apt installs
2025-07-18 08:42:43 +00:00

22 lines
472 B
Docker

# Build stage
FROM node:16 AS builder
WORKDIR /panel
COPY . .
RUN npm install && npm run build
# Final stage: Node.js + Python + ezdxf
FROM node:16-bullseye
# Install Python and pip
RUN apt-get update && apt-get install -y python3 python3-pip && \
pip3 install --no-cache-dir ezdxf && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Copy Node app
WORKDIR /panel
COPY --from=builder /panel ./
RUN npm install --omit=dev
EXPOSE 3000
CMD ["npm", "run", "start"]