mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-02-25 18:55:25 -06:00
fix pip stuff
This commit is contained in:
parent
ffa0e4ef08
commit
a107a09b57
@ -2,14 +2,16 @@
|
||||
|
||||
# https://askubuntu.com/questions/972516/debian-frontend-environment-variable
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
ARG PIP_BREAK_SYSTEM_PACKAGES=1
|
||||
|
||||
ARG BASE_IMAGE=debian:12
|
||||
ARG SLIM_BASE=debian:12-slim
|
||||
|
||||
FROM ${BASE_IMAGE} AS base
|
||||
ARG PIP_BREAK_SYSTEM_PACKAGES
|
||||
|
||||
# Ensure python 3.11 is available in ubuntu-based image
|
||||
RUN if [ -e /etc/lsb-release ]; then \
|
||||
RUN if grep -iq "ubuntu" /etc/os-release; then \
|
||||
apt-get update && \
|
||||
apt-get install -y software-properties-common && \
|
||||
add-apt-repository ppa:deadsnakes/ppa; \
|
||||
@ -18,9 +20,10 @@ RUN if [ -e /etc/lsb-release ]; then \
|
||||
FROM --platform=${BUILDPLATFORM} debian:12 AS base_host
|
||||
|
||||
FROM ${SLIM_BASE} AS slim-base
|
||||
ARG PIP_BREAK_SYSTEM_PACKAGES
|
||||
|
||||
# Ensure python 3.11 is available in ubuntu-based image
|
||||
RUN if [ -e /etc/lsb-release ]; then \
|
||||
RUN if grep -iq "ubuntu" /etc/os-release; then \
|
||||
apt-get update && \
|
||||
apt-get install -y software-properties-common && \
|
||||
add-apt-repository ppa:deadsnakes/ppa; \
|
||||
|
@ -6,6 +6,7 @@ apt-get -qq update
|
||||
|
||||
apt-get -qq install --no-install-recommends -y \
|
||||
apt-transport-https \
|
||||
ca-certificates \
|
||||
gnupg \
|
||||
wget \
|
||||
lbzip2 \
|
||||
|
Loading…
Reference in New Issue
Block a user