9e7223a1f5
- Flask app (web/) generates M1730 scale SVGs from a form; embeds GOST typ A font as base64 so output is self-contained - Dockerfile builds the app into git.baumann.gr/adebaumann/m1730-generator - k8s/ deploys as a ClusterIP service for NPM to proxy at works.adebaumann.com/M1730-generator/ Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
15 lines
297 B
Docker
15 lines
297 B
Docker
FROM python:3.12-slim
|
||
|
||
WORKDIR /app
|
||
|
||
COPY web/requirements.txt .
|
||
RUN pip install --no-cache-dir -r requirements.txt gunicorn
|
||
|
||
COPY fonts/ГОСТ_тип_А.ttf /usr/local/share/fonts/г/ГОСТ_тип_А.ttf
|
||
|
||
COPY web/ .
|
||
|
||
EXPOSE 5000
|
||
|
||
CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:5000", "app:app"]
|