Created
December 23, 2020 16:05
-
-
Save codekitchen/185c2da91262374f85245afb77a7fc45 to your computer and use it in GitHub Desktop.
pipeline Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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