did latest stuff
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -1,13 +1,10 @@
|
||||
FROM python:3.11 AS build
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
WORKDIR /workdir
|
||||
COPY . .
|
||||
|
||||
RUN pip install --no-cache-dir -r ./requirements.txt
|
||||
RUN python3 src/build.py
|
||||
|
||||
FROM caddy:latest AS serve
|
||||
|
||||
COPY --from=build /workdir/out/ /www/
|
||||
COPY --from=build /workdir/Caddyfile /etc/caddy/Caddyfile
|
||||
|
||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
Reference in New Issue
Block a user