Skip to content

Instantly share code, notes, and snippets.

@codekitchen
Created December 23, 2020 16:05
Show Gist options
  • Save codekitchen/185c2da91262374f85245afb77a7fc45 to your computer and use it in GitHub Desktop.
Save codekitchen/185c2da91262374f85245afb77a7fc45 to your computer and use it in GitHub Desktop.
pipeline Dockerfile
FROM ubuntu:20.04 as build
RUN set -e; \
apt-get update; \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
autoconf \
build-essential \
git \
libreadline-dev \
libncurses5-dev \
; \
rm -rf /var/lib/apt/lists/*
COPY . /pipeline
RUN set -e; \
cd /pipeline \
autoreconf -fi; \
./configure; \
make
FROM ubuntu:20.04
RUN set -e; \
mkdir /workspace; \
apt-get update; \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
jq \
libreadline8 \
; \
rm -rf /var/lib/apt/lists/*
COPY --from=build /pipeline/pipeline /usr/bin/pipeline
WORKDIR /workspace
ENV LANG C.UTF-8
ENTRYPOINT ["/usr/bin/pipeline"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment