diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..9c90c0a --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +__pycache__/ +*.pyc +*.pyo +.env +.git diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..5a42801 --- /dev/null +++ b/dockerfile @@ -0,0 +1,14 @@ +FROM python:3.11-slim + +WORKDIR /app + +# Install dependencies first (better caching) +COPY wickr-bedrock-gateway/requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +# Copy the FastAPI app +COPY wickr-bedrock-gateway/ . + +EXPOSE 8000 + +CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] diff --git a/main.py b/wickr-bedrock-gateway/main.py similarity index 100% rename from main.py rename to wickr-bedrock-gateway/main.py diff --git a/requirements.txt b/wickr-bedrock-gateway/requirements.txt similarity index 100% rename from requirements.txt rename to wickr-bedrock-gateway/requirements.txt