From d483d3cc2cac2b5a380eddfb39329bfcd8bb87da Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Tue, 11 May 2021 01:57:06 -0400 Subject: [PATCH] use base image --- Dockerfile | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/Dockerfile b/Dockerfile index e79e0bbdb5..278b1f6664 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,7 @@ -# Unsure if I want to create minimal images yet that run under Alpine Linux. -# I have instructions for that here: https://hub.docker.com/r/echelon/testcontainer/dockerfile -FROM ubuntu:xenial as build +# Custom base image +FROM ghcr.io/storytold/docker-base-images-rust-ssl:latest as build WORKDIR /tmp -RUN apt-get update \ - && apt-get install -y \ - build-essential \ - curl \ - libssl-dev \ - libssl1.0.0 \ - pkg-config \ - unzip \ - wget -RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \ - | sh -s -- --default-toolchain stable -y - COPY Cargo.lock . COPY Cargo.toml . COPY src/ ./src @@ -29,6 +16,7 @@ RUN LD_LIBRARY_PATH=/usr/lib:${LD_LIBRARY_PATH} $HOME/.cargo/bin/cargo build --r FROM ubuntu:xenial WORKDIR / +# See: https://github.com/opencontainers/image-spec/blob/master/annotations.md LABEL org.opencontainers.image.authors='bt@brand.io, echelon@gmail.com' LABEL org.opencontainers.image.url='https://github.com/storytold/twitch-ingestion-client' LABEL org.opencontainers.image.documentation='https://github.com/storytold/twitch-ingestion-client'