diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..39e6b16 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,30 @@ +FROM oven/bun:latest AS front-end + +WORKDIR /app + +COPY *.json bun.lock ./ + +RUN bun ci + +COPY *.ts index.html ./ +COPY resources ./resources + +RUN bun run build + +FROM astral/uv:python3.14-alpine + +WORKDIR /app + +COPY uv.lock pyproject.toml ./ +COPY app ./app/ + +RUN uv pip install . --system + +ENV APP_ENV=production +ENV PORT=5000 +EXPOSE ${PORT} +ENV BIND=0.0.0.0 + +COPY --from=front-end /app/dist ./dist + +ENTRYPOINT [ "tout-doux" ] diff --git a/README.md b/README.md index 7c8acb6..d15cb73 100644 --- a/README.md +++ b/README.md @@ -21,5 +21,5 @@ - [x] share link - [ ] fill new list with "fill todo" item - [x] lang in cookies -- [ ] Dockerfile +- [x] Dockerfile - [ ] README diff --git a/pyproject.toml b/pyproject.toml index fd7fe08..ee623be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,6 @@ name = "tout-doux" version = "0.0.0" description = "" -readme = "README.md" requires-python = ">=3.14" dependencies = [ "flask-limiter[redis]>=4.1.1,<5.0.0", @@ -20,8 +19,6 @@ build-backend = "uv_build" [dependency-groups] dev = [ - "coverage>=7.13.5,<8.0.0", - "pytest>=9.0.3,<10.0.0", "ruff>=0.15.12,<0.16.0", "ty>=0.0.34,<0.0.35", ]