fixed deployment
This commit is contained in:
+3
-1
@@ -4,11 +4,13 @@ FROM python:3.10.16
|
||||
ENV PYTHONDONTWRITEBYTECODE 1
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
|
||||
# install ffmpeg
|
||||
RUN apt-get update && apt-get install -y ffmpeg
|
||||
|
||||
# set work directory
|
||||
WORKDIR /app
|
||||
|
||||
COPY pyproject.toml /app/
|
||||
COPY config.yml /app/
|
||||
COPY src/ /app/src
|
||||
|
||||
RUN pip install --upgrade pip
|
||||
|
||||
+1
-1
@@ -12,4 +12,4 @@ audio:
|
||||
|
||||
model:
|
||||
type: base
|
||||
device: cuda
|
||||
device: cpu
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user