Sign inSign up

mgenrique/prophet-influx

By mgenrique

•Updated almost 2 years ago

Prophet and InfluxDB requirements installed in python:3.11-slim base image

Image
Internet of things
Data science
0

105

mgenrique/prophet-influx repository overview

Image that serves as the base for the Home Assistant Addon Prophet InfluxDB Addon. Addon repository: https://github.com/mgenrique/hassos_prophet_addon⁠

Although it is intended for a specific purpose, it is an image that can be useful for applications that require using Prophet within a Docker container. https://facebook.github.io/prophet/⁠

  • python:3.11-slim
  • Multiplatform linux/amd64, linux/arm64

requirements.txt

fastapi
pydantic
prophet
numpy
pandas
influxdb
uvicorn

Dockerfile

# docker buildx build --platform linux/amd64,linux/arm64 -t mgenrique/prophet-influx:1.0 --push .
FROM python:3.11-slim AS build

RUN apt-get update && \
    apt-get install -y --no-install-recommends \
    libgomp1 build-essential python3-dev cmake ninja-build && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /app

COPY requirements.txt ./

RUN pip install --upgrade pip && \
    pip install --no-cache-dir -r requirements.txt

FROM python:3.11-slim


WORKDIR /app

COPY --from=build /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
COPY --from=build /usr/local/bin /usr/local/bin

Tag summary

Content type

Image

Digest

sha256:b1ca63226…

Size

138.6 MB

Last updated

almost 2 years ago

docker pull mgenrique/prophet-influx:1.0