Updated folder structrue and README

This commit is contained in:
Anders Knutsen 2025-07-25 11:17:05 +02:00
parent 0569c0ab18
commit 81a1911b80
2 changed files with 5 additions and 12 deletions

View File

@ -1,18 +1,10 @@
# Use an official Python runtime as a parent image # Use an official Python runtime as a parent image
FROM python:3.11-slim FROM python:3.11-slim
# Set working directory inside container
WORKDIR /app
# Copy the Python script into the container
COPY backend/tcp_sia_server.py /app/
COPY requirements.txt . COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt
# Expose the port your server listens on
EXPOSE 9000 EXPOSE 9000
# Run the script CMD ["python", "/backend/tcp_sia_server.py"]
CMD ["python", "backend/tcp_sia_server.py"]

View File

@ -30,13 +30,14 @@ services:
- ./frontend:/usr/share/nginx/html - ./frontend:/usr/share/nginx/html
tcp_sia_server: tcp_sia_server:
build: . build:
context: .
ports: ports:
- "9000:9000" - "9000:9000"
volumes: volumes:
- ./:/app - ./backend/:/app
working_dir: /app working_dir: /app
command: python -u tcp_sia_server.py command: python -u /app/tcp_sia_server.py
depends_on: depends_on:
- mariadb - mariadb