Dockerfile 620 B

1234567891011121314151617
  1. FROM ubuntu:latest
  2. RUN apt update && apt install -y software-properties-common curl
  3. RUN add-apt-repository -y ppa:longsleep/golang-backports && apt update && apt install -y golang-go
  4. RUN apt install -y python3.7 python3.7-dev python3-pip git 9base
  5. RUN sed 's/python3/python3.7/' /usr/bin/pip3 > pip3 && mv pip3 /usr/bin/pip3
  6. RUN chmod 755 /usr/bin/pip3
  7. RUN pip3 install pybindgen
  8. RUN go get golang.org/x/tools/cmd/goimports
  9. RUN go get github.com/go-python/gopy
  10. RUN ln -s /usr/bin/python3.7 /usr/bin/python
  11. RUN ln -s /usr/bin/python3.7-config /usr/bin/python-config
  12. ENV PATH="/root/go/bin:${PATH}:/usr/lib/plan9/bin"