-
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.
- Loading branch information
Andrey Rusakov
committed
Aug 14, 2024
1 parent
43a4394
commit e42e0b5
Showing
5 changed files
with
24 additions
and
36 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,14 +1,16 @@ | ||
FROM ubuntu:oracular AS builder | ||
FROM python:3.12.5-slim-bookworm | ||
LABEL Maintainer="[email protected]" Vendor="Camptocamp" | ||
|
||
ENV POETRY_NO_INTERACTION=1 \ | ||
POETRY_VIRTUALENVS_CREATE=false \ | ||
POETRY_CACHE_DIR='/var/cache/pypoetry' \ | ||
POETRY_HOME='/usr/local' | ||
|
||
WORKDIR /app/geoshop_back/ | ||
COPY . /app/geoshop_back/ | ||
|
||
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 | ||
COPY poetry.lock pyproject.toml /app/geoshop_back/ | ||
|
||
RUN apt update && apt install -y libgdal-dev libffi-dev && \ | ||
pip install poetry && \ | ||
poetry install --only=main | ||
|
||
COPY . /app/geoshop_back/ |
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
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