added docker-compose for linux
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user