fix: Remove relative paths
Some checks failed
Build Docker / Build SLDs Image (push) Failing after 14s
Build Docker / Build Main Image (push) Successful in 18s

This commit is contained in:
Nathan Woodburn 2023-11-08 18:23:37 +11:00
parent 55152f3f72
commit 4dd4f876aa
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 5 additions and 4 deletions

View File

@ -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/}}

View File

@ -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