radames HF staff commited on
Commit
5b599e6
1 Parent(s): b37e887

move build to dockerfile

Browse files
.devcontainer/Dockerfile CHANGED
@@ -2,10 +2,10 @@
2
 
3
  FROM mcr.microsoft.com/vscode/devcontainers/universal:2-focal
4
 
5
- # ** [Optional] Uncomment this section to install additional packages. **
6
- # USER root
7
- #
8
- # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
9
- # && apt-get -y install --no-install-recommends <your-package-list-here>
10
- #
11
- # USER codespace
2
 
3
  FROM mcr.microsoft.com/vscode/devcontainers/universal:2-focal
4
 
5
+ USER root
6
+
7
+ COPY packages.txt /root/packages.txt
8
+ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
9
+ && xargs -r -a /root/packages.txt apt-get install -y
10
+
11
+ USER codespace
.devcontainer/devcontainer.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "postCreateCommand": "oryx build -p virtualenv_name=.venv --log-file /tmp/oryx-build.log --manifest-dir /tmp || echo 'Could not auto-build. Skipping.' && make install-deps",
3
  "hostRequirements": {
4
  "gpus": 1
5
  },
1
  {
2
+ "postCreateCommand": "oryx build -p virtualenv_name=.venv --log-file /tmp/oryx-build.log --manifest-dir /tmp || echo 'Could not auto-build. Skipping.' && make set-env",
3
  "hostRequirements": {
4
  "gpus": 1
5
  },
.devcontainer/packages.txt ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ python3-opencv
2
+ libopencv-dev
3
+ libopencv-core-dev
4
+ pkg-config
5
+ libopencv-imgcodecs-dev
6
+ libopencv-dev
7
+ libopencv-contrib-dev
8
+ build-essential
9
+ cmake
10
+ git
11
+ pkg-config
12
+ libgtk-3-dev
13
+ libavcodec-dev
14
+ libavformat-dev
15
+ libswscale-dev
16
+ libv4l-dev
17
+ libxvidcore-dev
18
+ libx264-dev
19
+ libjpeg-dev
20
+ libpng-dev
21
+ libtiff-dev
22
+ gfortran
23
+ openexr
24
+ libatlas-base-dev
25
+ python3-dev
26
+ python3-numpy
27
+ libtbb2
28
+ libtbb-dev
29
+ libdc1394-22-dev
30
+ libopenexr-dev
31
+ libgstreamer-plugins-base1.0-dev
32
+ libgstreamer1.0-dev
.nvmrc ADDED
@@ -0,0 +1 @@
 
1
+ 18
Makefile CHANGED
@@ -1,8 +1,6 @@
1
- install-deps:
2
- sudo apt-get update
3
- xargs -r -a packages.txt sudo apt-get install -y
4
- pip install -r requirements.txt
5
- cd frontend && npm install && cp .env.development.example .env.development && cp .env.example .env
6
  build-client:
7
  cd frontend && npm install && PUBLIC_DEV_MODE=PROD npm run build && rm -rf ../static && cp -r build/ ../static/
8
  build-dev:
1
+ set-env:
2
+ pip install -r requirements.txt
3
+ cd frontend && npm install && cp .env.development.example .env.development && cp .env.example .env
 
 
4
  build-client:
5
  cd frontend && npm install && PUBLIC_DEV_MODE=PROD npm run build && rm -rf ../static && cp -r build/ ../static/
6
  build-dev: