- Created a new Python script `uziom.py` for generating DXF drawings of grounding systems based on user input parameters. - Added detailed documentation in `wet_input_15.docx` and `wet_input_3.docx` for the design of grounding systems, including calculations for resistance and resistivity measurements. - Included placeholders for dynamic data insertion in the documents to facilitate project-specific customization.
22 lines
463 B
Docker
22 lines
463 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
|
|
|
|
# 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"]
|