Updated folder structrue and README
This commit is contained in:
parent
0569c0ab18
commit
81a1911b80
10
Dockerfile
10
Dockerfile
|
|
@ -1,18 +1,10 @@
|
|||
# Use an official Python runtime as a parent image
|
||||
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 .
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Expose the port your server listens on
|
||||
EXPOSE 9000
|
||||
|
||||
# Run the script
|
||||
CMD ["python", "backend/tcp_sia_server.py"]
|
||||
CMD ["python", "/backend/tcp_sia_server.py"]
|
||||
|
|
|
|||
|
|
@ -30,13 +30,14 @@ services:
|
|||
- ./frontend:/usr/share/nginx/html
|
||||
|
||||
tcp_sia_server:
|
||||
build: .
|
||||
build:
|
||||
context: .
|
||||
ports:
|
||||
- "9000:9000"
|
||||
volumes:
|
||||
- ./:/app
|
||||
- ./backend/:/app
|
||||
working_dir: /app
|
||||
command: python -u tcp_sia_server.py
|
||||
command: python -u /app/tcp_sia_server.py
|
||||
depends_on:
|
||||
- mariadb
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue