diff --git a/Dockerfile b/Dockerfile index b7a00a7..6fdb816 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,12 @@ FROM python:3.12-slim -# Set the working directory inside the container WORKDIR /app -# Copy requirements file first (improves build caching) -COPY requirements.txt /app +COPY pyproject.toml /app -# Install dependencies using pip with no-cache-dir for a smaller image -RUN pip install --no-cache-dir -r requirements.txt +RUN pip install --no-cache-dir . -# Copy the rest of the application files COPY . /app -# Use CMD to specify the entry point for the container +# Set the entry point for the container CMD ["python", "-m", "neso_solar_consumer.app"] diff --git a/dev-requirements.in b/dev-requirements.in deleted file mode 100644 index bdf3e52..0000000 --- a/dev-requirements.in +++ /dev/null @@ -1,4 +0,0 @@ --r requirements.in -pytest -black -ruff diff --git a/dev-requirements.txt b/dev-requirements.txt deleted file mode 100644 index d747eea..0000000 --- a/dev-requirements.txt +++ /dev/null @@ -1,44 +0,0 @@ -# -# This file is autogenerated by pip-compile with Python 3.12 -# by the following command: -# -# pip-compile dev-requirements.in -# -black==24.10.0 - # via -r dev-requirements.in -click==8.1.7 - # via black -colorama==0.4.6 - # via - # click - # pytest -iniconfig==2.0.0 - # via pytest -mypy-extensions==1.0.0 - # via black -numpy==2.1.3 - # via pandas -packaging==24.2 - # via - # black - # pytest -pandas==2.2.3 - # via -r requirements.in -pathspec==0.12.1 - # via black -platformdirs==4.3.6 - # via black -pluggy==1.5.0 - # via pytest -pytest==8.3.4 - # via -r dev-requirements.in -python-dateutil==2.9.0.post0 - # via pandas -pytz==2024.2 - # via pandas -ruff==0.8.1 - # via -r dev-requirements.in -six==1.16.0 - # via python-dateutil -tzdata==2024.2 - # via pandas diff --git a/requirements.in b/requirements.in deleted file mode 100644 index 1411a4a..0000000 --- a/requirements.in +++ /dev/null @@ -1 +0,0 @@ -pandas \ No newline at end of file diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 1ec4202..0000000 --- a/requirements.txt +++ /dev/null @@ -1,18 +0,0 @@ -# -# This file is autogenerated by pip-compile with Python 3.12 -# by the following command: -# -# pip-compile requirements.in -# -numpy==2.1.3 - # via pandas -pandas==2.2.3 - # via -r requirements.in -python-dateutil==2.9.0.post0 - # via pandas -pytz==2024.2 - # via pandas -six==1.16.0 - # via python-dateutil -tzdata==2024.2 - # via pandas