Add working Dockerfile and fix plan to reflect Tampio's Python roots

This commit is contained in:
2026-03-29 13:18:00 +03:00
parent 83d812e289
commit 0dbb38aa6f
3 changed files with 40 additions and 5 deletions
+25
View File
@@ -0,0 +1,25 @@
FROM ubuntu:24.04
# Avoid interactive prompts during apt installs
ENV DEBIAN_FRONTEND=noninteractive
# libvoikko: the Finnish morphology library Tampio depends on
# voikko-fi: the actual Finnish dictionary data
RUN apt-get update && apt-get install -y \
libvoikko-dev \
voikko-fi \
python3 \
python3-libvoikko \
git \
&& rm -rf /var/lib/apt/lists/*
# Install Tampio directly from source (not on PyPI or npm)
RUN git clone https://github.com/fergusq/tampio.git /opt/tampio
# Handy wrapper so you can just call `tampio` from anywhere
RUN echo '#!/bin/sh\npython3 /opt/tampio/tampio.py "$@"' > /usr/local/bin/tampio \
&& chmod +x /usr/local/bin/tampio
WORKDIR /tampiorama
CMD ["/bin/bash"]