File: Dockerfile

package info (click to toggle)
hotspot 1.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 12,084 kB
  • sloc: cpp: 17,854; ansic: 218; sh: 195; python: 40; xml: 40; makefile: 6
file content (20 lines) | stat: -rw-r--r-- 677 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# trusty
FROM ubuntu:14.04 as package_rustc_demangle_intermediate

# install dependencies
ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
    apt-get -y upgrade && \
    apt-get install -y software-properties-common build-essential curl unzip

RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rustup.sh && chmod +x rustup.sh && ./rustup.sh -y

FROM package_rustc_demangle_intermediate

WORKDIR /opt
ADD . /opt/

RUN curl -L https://github.com/alexcrichton/rustc-demangle/archive/master.zip -o rustc_demangle.zip && unzip rustc_demangle.zip
ENV PATH="/root/.cargo/bin:${PATH}"
CMD ./build_rustc_demangle.sh /opt /artifacts /opt/rustc-demangle-master