chore: Cleanup Dockerfile

main
Sean McBride 4 years ago
parent a4a39ba5d7
commit c2c165c3f3

@ -1,6 +1,4 @@
# Inspired by lucet's Dockerfile. # using ubuntu 20 docker image
# using ubuntu 18 docker image
FROM ubuntu:focal FROM ubuntu:focal
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
@ -34,9 +32,26 @@ RUN apt-get install -y --no-install-recommends \
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-8 100 RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-8 100
RUN update-alternatives --install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-8 100 RUN update-alternatives --install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-8 100
# Test Script Stuff # Needed to install from http endpoints via curl
RUN apt-get install -y --no-install-recommends \ RUN apt-get install -y --no-install-recommends \
curl \ curl \
ca-certificates \
libssl-dev
# Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable --component rustfmt --target wasm32-wasi -y
ENV PATH=/root/.cargo/bin:$PATH
RUN cargo install --debug cargo-audit cargo-watch rsign2
# WASI-SDK
RUN curl -sS -L -O https://github.com/CraneStation/wasi-sdk/releases/download/wasi-sdk-7/wasi-sdk_7.0_amd64.deb && dpkg -i wasi-sdk_7.0_amd64.deb && rm -f wasi-sdk_7.0_amd64.deb
ENV WASI_SDK=/opt/wasi-sdk
# Test Script Stuff
RUN apt-get install -y --no-install-recommends \
fonts-dejavu \
fonts-cascadia-code \
fonts-roboto \
imagemagick \ imagemagick \
netpbm \ netpbm \
pango1.0-tools \ pango1.0-tools \
@ -46,23 +61,14 @@ RUN apt-get install -y --no-install-recommends \
# Interactive Tools # Interactive Tools
RUN apt-get install -y --no-install-recommends \ RUN apt-get install -y --no-install-recommends \
less \ less \
lldb-8 \ gdb \
strace \ strace \
vim vim
# SSL Stuff - What is this used for? # We need to set the locale for pango-view
RUN apt-get install -y --no-install-recommends \ ENV LANG C.UTF-8
ca-certificates \ ENV LANGUAGE C.UTF-8
libssl-dev ENV LC_ALL C.UTF-8
# Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable --component rustfmt --target wasm32-wasi -y
ENV PATH=/root/.cargo/bin:$PATH
RUN cargo install --debug cargo-audit cargo-watch rsign2
# WASI-SDK
RUN curl -sS -L -O https://github.com/CraneStation/wasi-sdk/releases/download/wasi-sdk-7/wasi-sdk_7.0_amd64.deb && dpkg -i wasi-sdk_7.0_amd64.deb && rm -f wasi-sdk_7.0_amd64.deb
ENV WASI_SDK=/opt/wasi-sdk
ENV PATH=/opt/sledge/bin:$PATH ENV PATH=/opt/sledge/bin:$PATH
ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

Loading…
Cancel
Save