mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-02-28 03:41:57 +01:00
Fix docker build failure (#1179)
* 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
This commit is contained in:
parent
cd3ee44f9d
commit
d556c60e3f
@ -1,11 +1,7 @@
|
|||||||
FROM ubuntu:xenial
|
FROM python:slim
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
curl \
|
curl \
|
||||||
python3 \
|
|
||||||
python3-pip \
|
|
||||||
python3-setuptools \
|
|
||||||
python3-pygments \
|
|
||||||
git \
|
git \
|
||||||
make \
|
make \
|
||||||
doxygen \
|
doxygen \
|
||||||
@ -17,6 +13,6 @@ RUN pip3 install --no-cache-dir --no-binary :all: \
|
|||||||
sphinx
|
sphinx
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
WORKDIR /data/esphome-docs
|
WORKDIR /data/esphomedocs
|
||||||
|
|
||||||
CMD ["make", "webserver"]
|
CMD ["make", "webserver"]
|
||||||
|
Loading…
Reference in New Issue
Block a user