PyInventory/Dockerfile

20 wiersze
384 B
Docker

FROM python:3.7-slim-buster
# Install deps
RUN apt-get update \
&& apt-mark auto $(apt-mark showinstall) \
&& apt-get install -y python3-pip \
&& apt autoremove \
&& apt -y full-upgrade \
&& rm -rf /var/lib/apt \
&& python3 -m pip install -U pip \
&& python3 -m pip install poetry
WORKDIR /PyInventory
COPY . .
RUN poetry install --extras "postgres"