forked from openclimatefix/neso-solar-consumer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Dockerfile to use pyproject.toml and remove requirements files:
- Loading branch information
1 parent
51dff81
commit e3ec203
Showing
5 changed files
with
3 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.