You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
782 B
Docker
25 lines
782 B
Docker
FROM python:3.11-slim
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends socat && rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
# Install serial_bridge dependencies (server-only, no pystray/PyInstaller)
|
|
COPY serial_bridge/requirements.server.txt serial_bridge/requirements.server.txt
|
|
RUN pip install --no-cache-dir -r serial_bridge/requirements.server.txt
|
|
|
|
# Install test_writer dependencies
|
|
COPY test_comport_writer/requirements.txt test_comport_writer/requirements.txt
|
|
RUN pip install --no-cache-dir -r test_comport_writer/requirements.txt
|
|
|
|
# Copy application code
|
|
COPY serial_bridge/ serial_bridge/
|
|
COPY test_comport_writer/ test_comport_writer/
|
|
|
|
COPY serial_bridge/entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
EXPOSE 5000
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|