Add Docker support with build and push workflow, and configure Gunicorn for application serving
All checks were successful
Build and push Docker image / build (push) Successful in 2m14s
All checks were successful
Build and push Docker image / build (push) Successful in 2m14s
This commit is contained in:
parent
3d180d3359
commit
fd09bf8aa3
6 changed files with 67 additions and 0 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
@ -0,0 +1,17 @@
|
|||
FROM ghcr.io/astral-sh/uv:debian-slim
|
||||
|
||||
ADD . /app
|
||||
WORKDIR /app
|
||||
|
||||
RUN useradd -m -r musik && \
|
||||
chown -R musik /app
|
||||
|
||||
USER musik
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
ENV YOUTUBE_OAUTH_SECRETS="/config/secret.json"
|
||||
|
||||
RUN uv sync --locked
|
||||
|
||||
CMD ["/app/entrypoint.sh"]
|
Loading…
Add table
Add a link
Reference in a new issue