ha-core/Dockerfile.dev

33 lines
928 B
Docker
Raw Normal View History

2020-04-26 01:54:41 +02:00
FROM python:3.8
2020-04-26 01:54:41 +02:00
RUN \
2020-04-27 09:14:53 +02:00
apt-get update && apt-get install -y --no-install-recommends \
libudev-dev \
libavformat-dev \
libavcodec-dev \
libavdevice-dev \
libavutil-dev \
libswscale-dev \
libswresample-dev \
libavfilter-dev \
git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src
# Setup hass-release
RUN git clone --depth 1 https://github.com/home-assistant/hass-release \
&& cd hass-release \
&& pip3 install -e .
2019-08-10 12:15:36 +02:00
WORKDIR /workspaces
2019-09-05 14:20:08 +02:00
# Install Python dependencies from requirements
2019-11-05 21:38:30 +01:00
COPY requirements_test.txt requirements_test_pre_commit.txt homeassistant/package_constraints.txt ./
RUN pip3 install -r requirements_test.txt -c package_constraints.txt \
2019-11-05 21:38:30 +01:00
&& rm -f requirements_test.txt package_constraints.txt requirements_test_pre_commit.txt
# Set the default shell to bash instead of sh
ENV SHELL /bin/bash