-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Description
Made a minimal Dockerfile for deploying this application using the python3 webserver. I'm sure the other options are more performant, but python3 is chronically reliable.
Comes with some overhead because git isn't a runtime dependency, but then again: who cares. Total size of the container image is 244MB, most of which is python3 and its dependencies.
FROM debian:trixie-slim
RUN \
apt update && \
apt upgrade -y && \
apt install -y \
git \
python3 \
&& \
mkdir /xtc && \
git clone --single-branch --branch=main --depth=1 --recursive https://github.com/bigbag/epub-optimizer-xteink.git /xtc && \
rm -rf /var/lib/apt/lists/*
EXPOSE 8000/tcp
WORKDIR /xtc/web
ENTRYPOINT ["/usr/bin/python3", "-m", "http.server", "8000"]Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels