Skip to content

Commit

Permalink
fix: context in dockerfile for requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Arkenau committed Jan 5, 2023
1 parent 565c566 commit 37c5f76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,14 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 2
# check if Dockerfile has changed
# check if files have changed
- name: Get changed files
id: changed-files-specific-docker-base
uses: tj-actions/changed-files@v34
with:
files: |
docker/base/Dockerfile
docker/base/requirements.txt
-
name: Set up Docker Buildx
if: github.ref_type == 'tag' || steps.changed-files-specific-docker-base.outputs.any_changed == 'true'
Expand Down
2 changes: 1 addition & 1 deletion docker/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ RUN apt-get -qq update && apt-get -qq install -y --no-install-recommends -y \
bison \
&& rm -rf /var/lib/apt/lists/*

COPY requirements.txt /tmp/requirements.txt
COPY docker/base/requirements.txt /tmp/requirements.txt
RUN pip3 install --upgrade pip \
&& pip3 install -r /tmp/requirements.txt \
&& rm /tmp/requirements.txt
Expand Down

0 comments on commit 37c5f76

Please sign in to comment.