2022-02-16 15:20:26 +01:00
|
|
|
FROM mcr.microsoft.com/vscode/devcontainers/python:3.9-bullseye
|
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 \
|
|
|
|
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
|
|
|
|
|
|
|
|
# Install craftbeerpi requirements for better caching
|
|
|
|
COPY ./requirements.txt /workspace/requirements.txt
|
|
|
|
RUN pip3 install --no-cache-dir -r /workspace/requirements.txt
|
|
|
|
|
|
|
|
# Install current version of cbpi-ui
|
|
|
|
RUN mkdir /opt/downloads \
|
2022-05-10 07:06:14 +02:00
|
|
|
&& curl https://github.com/avollkopf/craftbeerpi4-ui/archive/testrelease.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
|