19 lines
270 B
Docker
19 lines
270 B
Docker
# Base image
|
|
FROM python:3.10-slim
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy files
|
|
COPY . .
|
|
|
|
# Install dependencies
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Expose port for Flask
|
|
EXPOSE 40000
|
|
|
|
# Start the Flask app
|
|
CMD ["python", "pi_opcua_client.py"]
|
|
|