From 6af5145cc2ef5d2dd8c52ae4effaea87c56f4a3f Mon Sep 17 00:00:00 2001 From: OleSeifert <74614364+OleSeifert@users.noreply.github.com> Date: Sun, 15 Jun 2025 22:59:37 +0200 Subject: [PATCH] Remove Duplicated Dockerfiles * Remove the files, which were initially added by me, because now we use the files added by Ekansh --- backend/Dockerfile | 37 ------------------------------------- docker-compose.yaml | 12 ------------ 2 files changed, 49 deletions(-) delete mode 100644 backend/Dockerfile delete mode 100644 docker-compose.yaml diff --git a/backend/Dockerfile b/backend/Dockerfile deleted file mode 100644 index 6463fb4..0000000 --- a/backend/Dockerfile +++ /dev/null @@ -1,37 +0,0 @@ -# **************** Builder Stage **************** - -FROM python:3.12-bookworm AS builder - -RUN apt-get update && apt-get install --no-install-recommends -y \ - build-essential && \ - apt-get clean && rm -rf /var/lib/apt/lists/* - -# Download the latest installer, install it and then remove it -ADD https://astral.sh/uv/install.sh /install.sh -RUN chmod -R 655 /install.sh && /install.sh && rm /install.sh - -# Set up uv environment path correctly -ENV PATH="/root/.local/bin:${PATH}" - -WORKDIR /app - -COPY ./pyproject.toml . - -RUN uv sync - -# **************** Production Stage **************** - -FROM python:3.12-slim-bookworm AS production - -WORKDIR /app - -COPY ./backend backend -COPY --from=builder /app/.venv .venv - -# Setup environment variables for production -ENV PATH="/app/.venv/bin:${PATH}" - -# Expose the port for fastapi -EXPOSE $PORT - -CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8000"] \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml deleted file mode 100644 index 3ad20af..0000000 --- a/docker-compose.yaml +++ /dev/null @@ -1,12 +0,0 @@ -services: - backend: - build: - context: . - dockerfile: backend/Dockerfile - env_file: - - ./.env - volumes: - - ./.env:/app/.env:rw - ports: - - "8000:8000" - # Add frontend later \ No newline at end of file