Skip to content

Commit

Permalink
Merge pull request #66 from openclimatefix/Issue-#65
Browse files Browse the repository at this point in the history
Add a Dockerised dev environment
  • Loading branch information
peterdudfield authored Nov 23, 2021
2 parents 5c45ecd + 994eff1 commit 1ccf4af
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
27 changes: 27 additions & 0 deletions infrastructure/docker/Dockerfile_dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM python:3.9

WORKDIR /pvoutput

RUN apt-get -qq update \
&& apt-get -qq install -y --no-install-recommends \
git \
curl \
git \
wget \
libproj-dev \
proj-data \
proj-bin \
libgeos-dev \
libgdal-dev \
python3-gdal \
gdal-bin \
&& apt-get autoclean && apt-get autoremove \
> /dev/null

COPY requirements.txt /pvoutput/requirements.txt

RUN pip install -U pip && pip install --no-cache-dir -r /pvoutput/requirements.txt > /dev/null

EXPOSE 1234

CMD ["jupyter", "notebook", "--allow-root", "--ip", "0.0.0.0", "--port", "1234", "--no-browser"]
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
pytest
pyyaml
tables
pandas
numpy
pandas>=1.0.0
matplotlib
jupyter
urllib3
Expand Down

0 comments on commit 1ccf4af

Please sign in to comment.