diff options
| author | kj_sh604 | 2026-02-16 02:32:47 -0500 |
|---|---|---|
| committer | kj_sh604 | 2026-02-16 02:32:47 -0500 |
| commit | e453d888996c6d834c212b3a84bf64eaa39e2daf (patch) | |
| tree | bd5a8694506a03d88f2763d7b998782966bff500 | |
| parent | af1eeceecae9667f8ea069f57d2baf508a08e8de (diff) | |
refactor: Dockerfile
| -rw-r--r-- | Dockerfile | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -1,12 +1,10 @@ FROM ubuntu:24.04 -ENV DEBIAN_FRONTEND=noninteractive \ - PYTHONUNBUFFERED=1 +ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install -y \ - python3 \ - python3-pip \ - python3-venv \ + nim \ + build-essential \ pandoc \ texlive-full \ fonts-noto-color-emoji \ @@ -14,13 +12,12 @@ RUN apt-get update && apt-get install -y \ WORKDIR /app -COPY src/requirements.txt . -RUN pip3 install --no-cache-dir -r requirements.txt --break-system-packages - COPY src/ . +RUN nim c -d:release --opt:size -o:likha-pdf app.nim + RUN mkdir -p generated uploads EXPOSE 5000 -CMD ["python3", "app.py"] +CMD ["./likha-pdf"] |
