forked from svthalia/concrexit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dependencies
More file actions
25 lines (22 loc) · 902 Bytes
/
Dockerfile.dependencies
File metadata and controls
25 lines (22 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM python:3.8
MAINTAINER Thalia Technicie <www@thalia.nu>
LABEL description="Contains the Thaliawebsite dependencies"
ARG install_dev_requirements=1
ENV PATH /root/.poetry/bin:${PATH}
ENV POETRY_VIRTUALENVS_CREATE false
WORKDIR /usr/src/app/
COPY pyproject.toml poetry.lock /usr/src/app/
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --yes --quiet --no-install-recommends \
postgresql-client \
gettext ghostscript && \
rm --recursive --force /var/lib/apt/lists/* && \
\
curl --silent --show-error --location https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python && \
\
if [ "$install_dev_requirements" -eq 1 ]; then \
poetry install --no-interaction --extras "docs"; \
else \
poetry install --no-interaction --no-dev; \
fi; \
poetry cache clear --all --no-interaction pypi