mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 11:32:38 +02:00
20 lines
836 B
Docker
20 lines
836 B
Docker
FROM debian:buster
|
|
|
|
EXPOSE 2244
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get -y update
|
|
RUN apt-get -y install git python3-dev python3-venv python3-pip libcairo-dev libpango1.0-dev locales
|
|
|
|
RUN sed -i -e 's/# fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/' /etc/locale.gen && \
|
|
dpkg-reconfigure --frontend=noninteractive locales && \
|
|
update-locale LANG=fr_FR.UTF-8
|
|
ENV LANG fr_FR.UTF-8
|
|
ENV LANGUAGE fr_FR:fr
|
|
ENV LC_ALL fr_FR.UTF-8
|
|
|
|
RUN git clone https://github.com/spiral-project/copanier /srv/copanier
|
|
RUN cd /srv/copanier/ && python3 -m venv venv && . ./venv/bin/activate && pip install wheel && pip install -e .
|
|
|
|
RUN dpkg-reconfigure locales
|
|
RUN sed -i 's/simple_server(app, port=2244)/simple_server(app, host="0.0.0.0", port=2244)/g' /srv/copanier/copanier/__init__.py
|
|
ENTRYPOINT ["/srv/copanier/venv/bin/copanier", "serve"]
|