From 84bea7cce261722e243572ae859129d8bf1f531b Mon Sep 17 00:00:00 2001 From: Dmitri Soshnikov Date: Wed, 25 May 2022 13:21:09 +0300 Subject: [PATCH] Update docker to install opencv dep --- .devcontainer/Dockerfile | 6 +++--- .devcontainer/devcontainer.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 2df9319d..f9be646d 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -4,6 +4,9 @@ FROM mcr.microsoft.com/vscode/devcontainers/miniconda:0-3 ARG NODE_VERSION="none" RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi +RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ + && apt-get -y install libgl1 + # Copy environment.yml (if found) to a temp location so we update the environment. Also # copy "noop.txt" so the COPY instruction does not fail if no environment.yml exists. COPY .devcontainer/environment.yml* .devcontainer/requirements.txt /tmp/conda-tmp/ @@ -15,6 +18,3 @@ RUN if [ -f "/tmp/conda-tmp/environment.yml" ]; then umask 0002 && /opt/conda/bi # && pip install --no-cache-dir pipx \ # && pipx reinstall-all -# [Optional] Uncomment this section to install additional OS packages. -# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ -# && apt-get -y install --no-install-recommends \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 5c9a3241..f452e78e 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -8,7 +8,7 @@ } }, - "hostRequirements": { "cpus": 4, "memory": "8gb", "storage": "100gb"}, + "hostRequirements": { "cpus": 4, "memory": "8gb", "storage": "50gb"}, // Configure tool-specific properties. "customizations": {