Skip to content

Commit

Permalink
Update Dockerfile to use pyproject.toml and remove requirements files:
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharth7113 committed Dec 6, 2024
1 parent 51dff81 commit e3ec203
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 74 deletions.
10 changes: 3 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
4 changes: 0 additions & 4 deletions dev-requirements.in

This file was deleted.

44 changes: 0 additions & 44 deletions dev-requirements.txt

This file was deleted.

1 change: 0 additions & 1 deletion requirements.in

This file was deleted.

18 changes: 0 additions & 18 deletions requirements.txt

This file was deleted.

0 comments on commit e3ec203

Please sign in to comment.