diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 08d6c10..e115a9b 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,7 +5,8 @@ - + + - { - "keyToString": { - "Python.main (1).executor": "Run", - "Python.main.executor": "Run", - "Python.order_parser.executor": "Run", - "Python.products_sold_parser.executor": "Run", - "RunOnceActivity.OpenProjectViewOnStart": "true", - "RunOnceActivity.ShowReadmeOnStart": "true", - "SHARE_PROJECT_CONFIGURATION_FILES": "true", - "ignore.virus.scanning.warn.message": "true", - "last_opened_file_path": "C:/Users/chris/Documents/Projects/export-sereia-guardia-tray/db" + +}]]> @@ -205,7 +206,31 @@ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1ebe93d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM python:3.12.8-slim-bullseye + +WORKDIR /app +COPY . /app +RUN pip install --no-cache-dir -r requirements.txt + +EXPOSE 8000 + +# Start the FastAPI server +CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..6fe0056 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +services: + fastapi-app: + build: + context: . + dockerfile: Dockerfile + ports: + - "8000:8000" + volumes: + - .:/app # Mount the local directory to the container for development + command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload