-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.ubuntu-bionic
43 lines (36 loc) · 1.13 KB
/
Dockerfile.ubuntu-bionic
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM ubuntu:bionic
MAINTAINER David Gillies <[email protected]>
ENV DISTRIBUTION ubuntu
ENV RELEASE bionic
ENV REFRESHED_AT 2020-04-23
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -qq -y && \
apt-get install -qq -y --no-install-recommends \
apt-transport-https \
build-essential \
bundler \
ca-certificates \
curl \
dash \
git \
gnupg \
jq \
lsb-release \
openssh-client \
ruby-dev \
unzip ; \
apt-get dist-upgrade -qq -y --force-yes; \
apt-key adv --keyserver keyserver.ubuntu.com --recv 379CE192D401AB61; \
echo "deb [arch=amd64] https://dl.bintray.com/davewongillies/fpm-recipes ${RELEASE} main" \
> /etc/apt/sources.list.d/fpm-recipes.list ; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /root/.ssh && ssh-keyscan github.com >> /root/.ssh/known_hosts
COPY Gemfile .
RUN gem install bundler; echo "gem: --no-ri --no-rdoc" >/etc/gemrc; \
bundle install --without deployment \
--binstubs /usr/local/bin
COPY run.sh /usr/local/bin/
VOLUME /data
WORKDIR /data
CMD ["run.sh", "recipe.rb"]