diff --git a/.github/workflows/docker-image-build.yml b/.github/workflows/docker-image-build.yml new file mode 100644 index 00000000..24f61a2e --- /dev/null +++ b/.github/workflows/docker-image-build.yml @@ -0,0 +1,20 @@ +name: Docker Image CI + +on: + push: + branches: + - master + - develop + + pull_request: + branches: + - master + - develop +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build the Docker image + run: docker build . --tag raw-data-api:$(date +%s) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image-push.yml similarity index 100% rename from .github/workflows/docker-image.yml rename to .github/workflows/docker-image-push.yml diff --git a/Dockerfile b/Dockerfile index 380f0528..08ec15ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG PYTHON_VERSION=3.10 +ARG PYTHON_VERSION=3.11 FROM docker.io/python:${PYTHON_VERSION}-slim-bookworm as base @@ -14,7 +14,7 @@ ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ && apt-get -y upgrade \ && apt-get --no-install-recommends -y install \ - build-essential libpq-dev libgdal-dev libboost-numpy-dev + build-essential libpq-dev libsqlite3-dev libgdal-dev libboost-numpy-dev SHELL ["/bin/bash", "-o", "pipefail", "-c"] RUN gdal-config --version | awk -F'[.]' '{print $1"."$2}' COPY setup.py . diff --git a/requirements.txt b/requirements.txt index 2a18024a..3035dfb9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -18,7 +18,7 @@ newrelic == 7.2.4.171 sentry-sdk == 1.5.12 area==1.1.1 -orjson==3.6.7 +orjson==3.9.10 boto3==1.24.38 fastapi-versioning==0.10.0 redis==4.3.4 diff --git a/setup.py b/setup.py index 8200c99c..4f2cdfe2 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ "fastapi==0.65.2", "geojson == 2.5.0", "area==1.1.1", - "orjson==3.6.7", + "orjson==3.9.10", "slowapi==0.1.6", ], classifiers=[