From e16199abef8f9bf16a73372ede05387394d8c4f0 Mon Sep 17 00:00:00 2001 From: Lucas Rangel Cezimbra Date: Wed, 17 Jan 2024 10:05:51 -0300 Subject: [PATCH] build: Dockerfile working on Raspberry PI --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a1ce31f..7ba8a68 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,10 @@ -FROM python:3.12 +# Rust is required to install cryptography when running on a Rasbperry PI +FROM rust:latest -WORKDIR /app +RUN apt-get update && apt-get install -y python3-dev pipx && pipx install poetry +ENV PATH="/root/.local/bin:${PATH}" -RUN pip install --upgrade pip && pip install poetry +WORKDIR /app COPY poetry.lock pyproject.toml ./ RUN poetry install --no-root --without=dev