Add Docker Build Check workflow and update Dockerfile syntax and commands
This commit is contained in:
19
.github/workflows/docker-check.yml
vendored
Normal file
19
.github/workflows/docker-check.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
name: Docker Build Check
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'Dockerfile'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'Dockerfile'
|
||||
|
||||
jobs:
|
||||
docker-check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Run Docker Build Check
|
||||
run: docker build --check .
|
@ -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
|
||||
|
Reference in New Issue
Block a user