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