Skip to content

Commit

Permalink
Merge pull request #173 from hotosm/feature/upgrade_docker
Browse files Browse the repository at this point in the history
Feature/upgrade docker
  • Loading branch information
kshitijrajsharma authored Nov 20, 2023
2 parents 0dd9a14 + 793483a commit aae822d
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 4 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/docker-image-build.yml
Original file line number Diff line number Diff line change
@@ -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)
File renamed without changes.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG PYTHON_VERSION=3.10
ARG PYTHON_VERSION=3.11

FROM docker.io/python:${PYTHON_VERSION}-slim-bookworm as base

Expand All @@ -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 .
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[
Expand Down

0 comments on commit aae822d

Please sign in to comment.