Initial commit
Some checks failed
Build and Publish Docker Images / build (server.Dockerfile, ${{ vars.IMAGE_NAME_SERVER }}) (push) Has been cancelled
Build and Publish Docker Images / build (server.Dockerfile, ${{ vars.IMAGE_NAME_WORKER }}) (push) Has been cancelled
Build and Publish Docker Images / build (worker.Dockerfile, ${{ vars.IMAGE_NAME_SERVER }}) (push) Has been cancelled
Build and Publish Docker Images / build (worker.Dockerfile, ${{ vars.IMAGE_NAME_WORKER }}) (push) Has been cancelled
Build and Publish Docker Images / setup (push) Has been cancelled
Some checks failed
Build and Publish Docker Images / build (server.Dockerfile, ${{ vars.IMAGE_NAME_SERVER }}) (push) Has been cancelled
Build and Publish Docker Images / build (server.Dockerfile, ${{ vars.IMAGE_NAME_WORKER }}) (push) Has been cancelled
Build and Publish Docker Images / build (worker.Dockerfile, ${{ vars.IMAGE_NAME_SERVER }}) (push) Has been cancelled
Build and Publish Docker Images / build (worker.Dockerfile, ${{ vars.IMAGE_NAME_WORKER }}) (push) Has been cancelled
Build and Publish Docker Images / setup (push) Has been cancelled
This commit is contained in:
commit
68f6e85c78
17 changed files with 1286 additions and 0 deletions
29
worker.Dockerfile
Normal file
29
worker.Dockerfile
Normal file
|
@ -0,0 +1,29 @@
|
|||
FROM python:3.13-alpine AS builder
|
||||
|
||||
RUN apk add --no-cache curl && \
|
||||
curl -sSL https://install.python-poetry.org | python3 -
|
||||
|
||||
ENV PATH="/root/.local/bin:$PATH" \
|
||||
POETRY_NO_INTERACTION=1 \
|
||||
POETRY_VIRTUALENVS_IN_PROJECT=1 \
|
||||
POETRY_VIRTUALENVS_CREATE=1 \
|
||||
POETRY_CACHE_DIR=/var/cache/pypoetry
|
||||
|
||||
WORKDIR /app
|
||||
COPY pyproject.toml poetry.lock ./
|
||||
RUN poetry install --only main && \
|
||||
rm -rf ${POETRY_CACHE_DIR}
|
||||
|
||||
FROM python:3.13-alpine AS runtime
|
||||
|
||||
RUN apk add --no-cache ffmpeg libmagic opus svt-av1
|
||||
|
||||
ENV REDIS_URL=redis://redis:6379/0
|
||||
|
||||
COPY --from=builder /app/.venv /app/.venv
|
||||
COPY ./src/auto_transcoder /app/auto_transcoder
|
||||
|
||||
WORKDIR /app
|
||||
EXPOSE 5000
|
||||
|
||||
ENTRYPOINT ["/app/.venv/bin/celery", "-A", "auto_transcoder.tasks", "worker", "--loglevel=info"]
|
Loading…
Add table
Add a link
Reference in a new issue