mirror of
https://git.bolliret.ch/pcs/pcs-website
synced 2026-01-18 15:01:37 +01:00
14 lines
430 B
Docker
14 lines
430 B
Docker
FROM debian:latest
|
|
|
|
RUN apt update
|
|
RUN apt install -y python3-pip python3-venv pipx curl locales
|
|
RUN pipx install lektor
|
|
RUN mkdir -p /opt/lektor/project && mkdir -p /opt/lektor/output
|
|
RUN sed -i '/de_DE.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
|
|
|
|
WORKDIR /opt/lektor/project
|
|
|
|
ENV PATH="$PATH:/root/.local/bin"
|
|
|
|
ENTRYPOINT [ "/root/.local/bin/lektor", "--project", "/opt/lektor/project", "server" ]
|
|
CMD [ "--host", "0.0.0.0" ]
|