From 4dd4f876aa696041d03db7c246f9f76237c624d0 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Wed, 8 Nov 2023 18:23:37 +1100 Subject: [PATCH] fix: Remove relative paths --- .gitea/workflows/build.yml | 4 ++++ sites/Dockerfile | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) 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