feat: Dockerfile
This commit is contained in:
+30
@@ -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" ]
|
||||
@@ -21,5 +21,5 @@
|
||||
- [x] share link
|
||||
- [ ] fill new list with "fill todo" item
|
||||
- [x] lang in cookies
|
||||
- [ ] Dockerfile
|
||||
- [x] Dockerfile
|
||||
- [ ] README
|
||||
|
||||
@@ -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",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user