aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorKyle Javier [kj_sh604]2026-02-16 03:06:31 -0500
committerGitHub2026-02-16 03:06:31 -0500
commit56f77847378fc92fa79b5303ca86ff71b5767c42 (patch)
tree34017664c04c2fecb137685a0bdc65ba5d9884ef /Dockerfile
parentaf1eeceecae9667f8ea069f57d2baf508a08e8de (diff)
parent1272877be9f9c263273fdd0b2c564ef6bd73afbd (diff)
[merge] feat: NimLang Backend Re-write
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile15
1 files changed, 6 insertions, 9 deletions
diff --git a/Dockerfile b/Dockerfile
index cb2ae81..fef5037 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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"]