mirror of https://github.com/interlegis/sigi.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
502 B
13 lines
502 B
FROM python:3
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
RUN apt update
|
|
RUN apt upgrade -y
|
|
RUN apt install build-essential python3-dev graphviz libgraphviz-dev pkg-config libpq-dev -y
|
|
RUN pip install --upgrade pip
|
|
WORKDIR /code
|
|
COPY . /code/
|
|
#RUN pg_ctl -D /var/lib/postgresql/data -l logfile start
|
|
# RUN --mount=type=cache,target=/root/.cache/pip pip install -r /code/requirements/dev-requirements.txt
|
|
RUN pip install -r /code/requirements/dev-requirements.txt
|
|
RUN python manage.py migrate
|