run with docker compose
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM ghcr.io/astral-sh/uv:alpine
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
ENV PYTHONUNBUFFERED=1 \
|
||||
PYTHONDONTWRITEBYTECODE=1 \
|
||||
PORT=8000 \
|
||||
UV_NO_DEV=1
|
||||
|
||||
WORKDIR /app
|
||||
COPY ./pyproject.toml /app/
|
||||
RUN uv sync
|
||||
|
||||
COPY . /app
|
||||
VOLUME ["/app"]
|
||||
|
||||
CMD uv run fastapi run cutt/main.py
|
||||
Reference in New Issue
Block a user