mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Self-contained dockerfiles
This commit is contained in:
parent
79dfc22016
commit
d81d2309fd
3 changed files with 3 additions and 13 deletions
|
@ -1,9 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
apt-get update -q
|
|
||||||
apt-get install -qy --no-install-recommends "$@"
|
|
||||||
|
|
||||||
# Purge apt-get caches to minimize image size
|
|
||||||
apt-get auto-remove -y
|
|
||||||
apt-get clean -y
|
|
||||||
rm -rf /var/lib/apt/lists/
|
|
|
@ -4,5 +4,4 @@ set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
image="$1"
|
image="$1"
|
||||||
cd $(dirname $0)
|
docker build -t "$image" "$(dirname $0)/$image"
|
||||||
docker build -f "$image/Dockerfile" -t "$image" .
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
FROM ubuntu:bionic-20180821
|
FROM ubuntu:bionic-20180821
|
||||||
|
|
||||||
ADD apt-install.sh /apt-install.sh
|
RUN apt-get update -q && apt-get install -qy --no-install-recommends \
|
||||||
RUN /apt-install.sh \
|
|
||||||
git \
|
git \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
python2.7 \
|
||||||
g++ \
|
g++ \
|
||||||
&& \
|
&& \
|
||||||
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none -y
|
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none -y
|
||||||
|
|
||||||
ENV PATH="/root/.cargo/bin:${PATH}"
|
ENV PATH="/root/.cargo/bin:${PATH}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue