-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated docker configs to work with poetry
- Loading branch information
Andrey Rusakov
committed
Aug 14, 2024
1 parent
1c3ecee
commit 43a4394
Showing
4 changed files
with
33 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
FROM ghcr.io/osgeo/gdal:ubuntu-small-3.5.2 | ||
FROM ubuntu:oracular AS builder | ||
LABEL Maintainer="[email protected]" Vendor="Camptocamp" | ||
|
||
RUN apt-get update --fix-missing && \ | ||
apt-get install gettext python3-pip libcairo2-dev build-essential python3-dev \ | ||
pipenv python3-setuptools python3-wheel python3-cffi libcairo2 libpango-1.0-0 \ | ||
libpangocairo-1.0-0 libgdk-pixbuf2.0-0 libffi-dev shared-mime-info libpq-dev -y && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY ./requirements.txt /app/geoshop_back/requirements.txt | ||
WORKDIR /app/geoshop_back/ | ||
RUN pip3 install -r requirements.txt | ||
|
||
# Update C env vars so compiler can find gdal | ||
ENV CPLUS_INCLUDE_PATH=/usr/include/gdal | ||
ENV C_INCLUDE_PATH=/usr/include/gdal | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
COPY . /app/geoshop_back/ | ||
RUN mv /app/geoshop_back/default_settings.py /app/geoshop_back/settings.py | ||
|
||
RUN apt update && \ | ||
apt upgrade -y && \ | ||
apt install -y bash postgresql curl \ | ||
python3 python3-poetry python3-setuptools gunicorn \ | ||
libgdal-dev libffi-dev && \ | ||
cd /app/geoshop_back/ && \ | ||
poetry update && \ | ||
poetry install --no-root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters