fixed deployment

This commit is contained in:
2024-12-30 19:36:21 +01:00
parent ac1509c215
commit 6c9a985f8f
3 changed files with 28 additions and 2 deletions
+3 -1
View File
@@ -4,11 +4,13 @@ FROM python:3.10.16
ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1 ENV PYTHONUNBUFFERED 1
# install ffmpeg
RUN apt-get update && apt-get install -y ffmpeg
# set work directory # set work directory
WORKDIR /app WORKDIR /app
COPY pyproject.toml /app/ COPY pyproject.toml /app/
COPY config.yml /app/
COPY src/ /app/src COPY src/ /app/src
RUN pip install --upgrade pip RUN pip install --upgrade pip
+1 -1
View File
@@ -12,4 +12,4 @@ audio:
model: model:
type: base type: base
device: cuda device: cpu
+24
View File
@@ -0,0 +1,24 @@
services:
annescribe:
build:
context: .
dockerfile: Dockerfile
labels:
- "traefik.enable=true"
- "traefik.http.routers.annescribe.rule=Host(`annescribe.dieblanks.net`)"
- "traefik.http.routers.annescribe.tls=true"
- "traefik.http.routers.annescribe.tls.certresolver=lets-encrypt"
- "traefik.http.services.annescribe.loadbalancer.server.port=8501"
volumes:
- ./auth.yml:/app/auth.yml
- ./config.yml:/app/config.yml
restart: unless-stopped
ports:
- 8501:8501
networks:
- web
networks:
web:
driver: bridge
external: true