Skip to content

Commit

Permalink
Fix stupid bug where creating openapi docs required already having them
Browse files Browse the repository at this point in the history
  • Loading branch information
totycro committed Dec 3, 2024
1 parent 3814e83 commit 8ab8839
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,12 @@ WORKDIR /pkp
COPY requirements.txt .
RUN python3 -m pip install -r requirements.txt

# Stupid workaround:
# Adding views to pygeoapi from here is messy. We have to modify the flask
# app, but then generating the openapi docs imports flask, which fails if
# the openapi docs are missing. Therefore create it here, but empty, such
# that we can even create it *exploding-head-emoji*
RUN touch /pygeoapi/local.openapi.yml

COPY . .
RUN python3 setup.py install

0 comments on commit 8ab8839

Please sign in to comment.