최초 커밋
This commit is contained in:
9
socket/Dockerfile
Normal file
9
socket/Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM python:3.11-slim
|
||||
WORKDIR /app
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
COPY modbus.py .
|
||||
ENV TCP_PORT=8181 MODE=stream LOG_MODE=both
|
||||
ENV CTRL_HOST=0.0.0.0 CTRL_PORT=8182
|
||||
EXPOSE 8181 8182
|
||||
CMD ["python","modbus.py"]
|
Reference in New Issue
Block a user