fix: Remove relative paths
This commit is contained in:
parent
55152f3f72
commit
4dd4f876aa
@ -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/}}
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user