-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
37 lines (29 loc) · 989 Bytes
/
Dockerfile
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
26
27
28
29
30
31
32
33
34
35
36
37
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
# Install dependencies for python packages
RUN apt-get update && apt-get install -y \
curl python3-dev python3-pip \
# Pillow
libjpeg-dev zlib1g-dev libatlas-base-dev \
# cffi
libffi-dev \
# bcrypt
build-essential cargo \
# Opencv
ffmpeg libsm6 libxext6 libgl1 \
# Cryptography build (on arm 32 platform)
libssl-dev python3-venv
RUN apt-get update && apt-get install rpi.gpio; exit 0
RUN curl -sSL https://install.python-poetry.org --output /tmp/install-poetry.py \
&& POETRY_HOME=/usr/local python3 /tmp/install-poetry.py
# Disable the keyring due to a bug with pip install
# https://github.com/pypa/pip/issues/7883
ENV PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
# Install project dependencies
WORKDIR /project
COPY pyproject.toml .
COPY poetry.lock .
ARG POETRY_EXTRAS
RUN poetry install --no-dev --no-ansi -vvv $POETRY_EXTRAS
# Copy the rest of the project source in
COPY portrayt portrayt