mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
d556c60e3f
* Fix docker build failure Fix the docker build error from https://github.com/esphome/issues/issues/2041 * Switch from ubuntu to python-slim Using python:slim instead of python reduces the image size from ~1.1 GB to 410MB
19 lines
406 B
Docker
19 lines
406 B
Docker
FROM python:slim
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
curl \
|
|
git \
|
|
make \
|
|
doxygen \
|
|
openssh-client \
|
|
software-properties-common \
|
|
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/*
|
|
|
|
RUN pip3 install --no-cache-dir --no-binary :all: \
|
|
sphinx
|
|
|
|
EXPOSE 8000
|
|
WORKDIR /data/esphomedocs
|
|
|
|
CMD ["make", "webserver"]
|