diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 9090799..88222d9 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -56,6 +56,10 @@ jobs: - name: Build Docker image run : | cd sites + cp ../templates/* . + cp ../.env . + cp ../requirements.txt . + echo "${{ secrets.DOCKERGIT_TOKEN }}" | docker login git.woodburn.au -u nathanwoodburn --password-stdin echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" tag=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} diff --git a/sites/Dockerfile b/sites/Dockerfile index 7d5246e..b89f330 100644 --- a/sites/Dockerfile +++ b/sites/Dockerfile @@ -2,14 +2,11 @@ FROM --platform=$BUILDPLATFORM python:3.10-alpine AS builder WORKDIR /app -COPY ../requirements.txt /app/requirements.txt +COPY requirements.txt /app RUN --mount=type=cache,target=/root/.cache/pip \ pip3 install -r requirements.txt COPY . /app -COPY ../templates /app/templates -COPY ../.env /app/.env - # Add mount point for data volume VOLUME /data