-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
37 lines (30 loc) · 826 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM python:3.11
RUN apt-get update && apt-get -y install --no-install-recommends \
bats \
gcc \
git \
git-lfs \
libcairo2-dev \
libffi-dev \
libfreetype6-dev \
libjpeg-dev \
libpng-dev \
libz-dev \
python3-pip \
vim
WORKDIR /opt/mkdocs-simple-plugin
COPY mkdocs_simple_plugin mkdocs_simple_plugin
COPY README.md README.md
COPY VERSION VERSION
COPY pyproject.toml pyproject.toml
COPY docker/requirements.txt requirements.txt
EXPOSE 8000
RUN mkdir -p /home/mkdocs && chmod 777 /home/mkdocs
ENV HOME=/home/mkdocs
ENV PATH=/home/mkdocs/.local/bin:${PATH}
COPY docker/deploy.sh /usr/local/bin/
COPY docker/entrypoint.sh /usr/local/bin/
COPY docker/update.sh /usr/local/bin/
WORKDIR /docs
ENTRYPOINT ["entrypoint.sh"]
CMD ["mkdocs_simple_gen", "--serve", "--", "-a", "0.0.0.0:8000", "--dirtyreload"]