aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkj_sh6042026-02-16 02:32:47 -0500
committerkj_sh6042026-02-16 02:32:47 -0500
commite453d888996c6d834c212b3a84bf64eaa39e2daf (patch)
treebd5a8694506a03d88f2763d7b998782966bff500
parentaf1eeceecae9667f8ea069f57d2baf508a08e8de (diff)
refactor: 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"]