-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
32 lines (24 loc) · 1.1 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# to build this docker image (any time do.py changes):
# docker build --tag onex-build-env:latest .
#
# to build all artifacts this docker image:
# docker run -it --rm --user $(id -u):$(id -g) -v $PWD:/tmp onex-build-env:latest bash -c "source /onex/.env/bin/activate && cd /tmp && python3 generate.py"
# to run tests with this docker image:
# docker run -it --rm --user $(id -u):$(id -g) -v $PWD:/tmp onex-build-env:latest bash -c "source /onex/.env/bin/activate && cd /tmp && python3 do.py test"
# to build pypi packages
# docker run -it --rm --user $(id -u):$(id -g) -v $PWD:/tmp onex-build-env:latest bash -c "source /onex/.env/bin/activate && cd /tmp && python3 do.py dist"
FROM ubuntu:latest
WORKDIR /onex
RUN apt update
RUN apt install -y python3
RUN apt install -y python3-pip
RUN apt install -y curl
RUN apt install -y unzip
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash
RUN apt-get install nodejs
RUN npm install redoc-cli -g
ENV PATH="${PATH}:/root/go/bin:/root/go/go/bin"
COPY do.py setup/
RUN python3 setup/do.py setup_ext
RUN python3 setup/do.py setup
RUN python3 setup/do.py init