Skip to content

Commit

Permalink
build: add apprunner configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
jkgeo committed Nov 25, 2024
1 parent 2491270 commit abc5646
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions apprunner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 1.0
runtime: python311
build:
commands:
build:
- yum install gcc gcc-c++ cpp sqlite-devel libtiff cmake3 tar wget gzip python3 python3-devel -y

- wget https://download.osgeo.org/proj/proj-6.1.1.tar.gz
- tar -xvf proj-6.1.1.tar.gz
- cd proj-6.1.1 && ./configure && make && make install

- wget https://github.com/OSGeo/gdal/releases/download/v3.2.1/gdal-3.2.1.tar.gz
- tar -xvf gdal-3.2.1.tar.gz
- cd gdal-3.2.1 &&./configure --with-proj=/usr/local --with-python && make &&make install

run:
runtime-version: 3.11
pre-run:
- echo "Installing dependencies..."
- pip3 install poetry
- poetry config virtualenvs.create false
- poetry install
command: poetry run gunicorn glam_api.wsgi --log-file -
network:
port: 8000

0 comments on commit abc5646

Please sign in to comment.