Add Docker Build Check workflow and update Dockerfile syntax and commands

This commit is contained in:
2025-04-14 10:09:24 +02:00
parent 66c0132c1b
commit 63b466c9ab
2 changed files with 21 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1
# check=error=true
# check=error=true;experimental=all
FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim@sha256:73c021c3fe7264924877039e8a449ad3bb380ec89214282301affa9b2f863c5d
# Change the working directory to the `app` directory
@ -11,7 +11,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --no-install-project
# Copy the application files
ADD main.py misc.py settings.py /app/
COPY main.py misc.py settings.py /app/
# Set the environment variables
ENV PYTHONUNBUFFERED=1