-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
7 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,12 +1,10 @@ | ||
FROM python:3.12-bookworm | ||
FROM python:3.12-alpine | ||
|
||
WORKDIR /usr/src/app | ||
|
||
RUN apt-get -y update && apt-get install -y libhdf5-dev && apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
COPY requirements.txt requirements.txt | ||
RUN pip install --no-cache-dir --prefer-binary -r requirements.txt | ||
|
||
COPY . . | ||
|
||
ENV PYTHONPATH=/usr/lib/python3.12/site-packages | ||
RUN apk --no-cache add py3-numpy py3-scipy py3-h5py && \ | ||
pip install --no-cache-dir --prefer-binary -r requirements.txt | ||
|
||
CMD [ "python", "./PVForecasts.py" ] |