2024-05-02 19:02:02 +02:00
|
|
|
FROM mcr.microsoft.com/vscode/devcontainers/python:3.11-bookworm
|
2022-02-16 12:51:09 +01:00
|
|
|
|
2022-02-16 15:20:26 +01:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get upgrade -y
|
|
|
|
RUN apt-get install --no-install-recommends -y \
|
|
|
|
libatlas-base-dev \
|
2024-05-02 17:39:43 +02:00
|
|
|
libsystemd-dev \
|
2022-02-16 15:20:26 +01:00
|
|
|
libffi-dev \
|
|
|
|
python3-pip \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2022-02-16 12:51:09 +01:00
|
|
|
RUN python3 -m pip install --no-cache-dir --upgrade pip setuptools wheel
|
|
|
|
|
2022-09-24 12:58:26 +02:00
|
|
|
# Install craftbeerpi requirements and additional-dev-requirements for better caching
|
|
|
|
COPY ./requirements.txt ./.devcontainer/cbpi-default-dev-config/additional-dev-requirements.txt /workspace/
|
|
|
|
RUN cat /workspace/additional-dev-requirements.txt 2>/dev/null 1>> /workspace/requirements.txt \
|
|
|
|
&& pip3 install --no-cache-dir -r /workspace/requirements.txt
|
2022-02-16 12:51:09 +01:00
|
|
|
|
|
|
|
# Install current version of cbpi-ui
|
|
|
|
RUN mkdir /opt/downloads \
|
2023-03-04 16:03:04 +01:00
|
|
|
&& curl https://github.com/PiBrewing/craftbeerpi4-ui/archive/main.zip -L -o /opt/downloads/cbpi-ui.zip \
|
2022-02-16 12:51:09 +01:00
|
|
|
&& pip3 install --no-cache-dir /opt/downloads/cbpi-ui.zip \
|
|
|
|
&& rm -rf /opt/downloads
|