beebot-docker/Dockerfile

18 lines
600 B
Docker
Raw Permalink Normal View History

2024-09-14 00:06:51 +00:00
FROM python:3.10
LABEL authors="Lord Baryhobal"
LABEL maintainer="Lord Baryhobal <lordbaryhobal@gmail.com>"
RUN echo "Installing Typst" \
&& wget -q -O /tmp/typst.tar.xz https://github.com/typst/typst/releases/download/v0.11.1/typst-x86_64-unknown-linux-musl.tar.xz \
&& tar -xf /tmp/typst.tar.xz -C /tmp/ \
2024-09-14 00:06:51 +00:00
&& mv /tmp/typst-x86_64-unknown-linux-musl/typst /usr/bin/typst \
&& chmod +x /usr/bin/typst \
&& rm -r /tmp/typst-x86_64-unknown-linux-musl \
&& rm /tmp/typst.tar.xz
WORKDIR /app
COPY src /app
RUN pip install -r requirements.txt
ENTRYPOINT ["python", "beebot.py"]