Skip to content

Instantly share code, notes, and snippets.

@stefanproell
Last active December 30, 2021 14:25
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save stefanproell/89a00f3a2c18a7e9549a1de6f82cf0f8 to your computer and use it in GitHub Desktop.
Save stefanproell/89a00f3a2c18a7e9549a1de6f82cf0f8 to your computer and use it in GitHub Desktop.
Run a Facebook Prophet Forecast in a Docker Container
# Run a python script using FB Prophet in a Docker container
# Build image: docker build -f Dockerfile-Debian -t forecast:R1 .
FROM python:3.4.6-wheezy
MAINTAINER Stefan Proell <stefan.proell@cropster.com>
RUN apt-get -y update && apt-get install -y \
python3-dev \
libpng-dev \
apt-utils \
python-psycopg2 \
python-dev \
postgresql-client \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade setuptools
RUN pip install cython
RUN pip install numpy
RUN pip install matplotlib
RUN pip install pystan
RUN pip install fbprophet
RUN pip install psycopg2
RUN pip install sqlalchemy
WORKDIR /forecast
COPY . /forecast/
CMD [ "python", "./run_forecast.py" ]
@baki077
Copy link

baki077 commented Jun 6, 2020

Hello i get this error when running this Dockerfile do you have any idea on how to fix it please

`
W: Failed to fetch http://deb.debian.org/debian/dists/wheezy/main/binary-amd64/Packages 404 Not Found

W: Failed to fetch http://archive.debian.org/debian/dists/wheezy/updates/main/binary-amd64/Packages 404 Not Found [IP: 130.89.148.13 80]

W: Failed to fetch http://security.debian.org/dists/wheezy/updates/main/binary-amd64/Packages 404 Not Found [IP: 151.101.0.204 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment