mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-14 20:21:25 +01:00
Merge branch 'current' into next
This commit is contained in:
commit
eb1af142c1
20
Dockerfile
20
Dockerfile
@ -1,4 +1,4 @@
|
|||||||
FROM python:3.8-slim
|
FROM python:3.12-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 \
|
||||||
@ -9,10 +9,24 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
software-properties-common \
|
software-properties-common \
|
||||||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/*
|
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/*
|
||||||
|
|
||||||
COPY requirements.txt .
|
RUN useradd -ms /bin/bash esphome
|
||||||
|
|
||||||
|
USER esphome
|
||||||
|
|
||||||
|
WORKDIR /workspaces/esphome-docs
|
||||||
|
|
||||||
|
COPY requirements.txt ./
|
||||||
RUN pip3 install --no-cache-dir --no-binary :all: -r requirements.txt
|
RUN pip3 install --no-cache-dir --no-binary :all: -r requirements.txt
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
WORKDIR /data/esphomedocs
|
|
||||||
|
|
||||||
CMD ["make", "live-html"]
|
CMD ["make", "live-html"]
|
||||||
|
|
||||||
|
LABEL \
|
||||||
|
org.opencontainers.image.title="esphome-docs" \
|
||||||
|
org.opencontainers.image.description="An image to help with ESPHomes documentation development" \
|
||||||
|
org.opencontainers.image.vendor="ESPHome" \
|
||||||
|
org.opencontainers.image.licenses="CC BY-NC-SA 4.0" \
|
||||||
|
org.opencontainers.image.url="https://esphome.io" \
|
||||||
|
org.opencontainers.image.source="https://github.com/esphome/esphome-docs" \
|
||||||
|
org.opencontainers.image.documentation="https://github.com/esphome/esphome-docs/blob/current/README.md"
|
||||||
|
Loading…
Reference in New Issue
Block a user