From 7d6fc32cb06c647634a80b3cd190b6f447abf383 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 22 Jun 2026 17:08:50 +0200 Subject: [PATCH] refac --- .dockerignore | 11 +++++++++++ Dockerfile | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..3954946 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,11 @@ +.git +.venv +__pycache__ +*.pyc +.pytest_cache +.ruff_cache +.mypy_cache + +terminals/frontend/node_modules +terminals/frontend/.svelte-kit +terminals/frontend/build diff --git a/Dockerfile b/Dockerfile index cd77a6e..650a178 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,14 @@ +FROM node:22-slim AS frontend + +WORKDIR /frontend + +COPY terminals/frontend/package.json terminals/frontend/package-lock.json ./ +RUN npm ci + +COPY terminals/frontend/ ./ +RUN npm run build + + FROM python:3.12-slim ENV PYTHONUNBUFFERED=1 @@ -5,6 +16,7 @@ ENV PYTHONUNBUFFERED=1 WORKDIR /app COPY . . +COPY --from=frontend /frontend/build /app/terminals/frontend/build RUN pip install --no-cache-dir .