blob: 6a43ef0883c30e499b1ec4e2504f030e1bb1af01 [file] [log] [blame]
Areli Fuss0a3899f2017-11-19 13:28:08 +02001FROM jetty:9.3-jre8-alpine
2
Areli Fuss0a3899f2017-11-19 13:28:08 +02003USER root
4
Areli Fuss0a3899f2017-11-19 13:28:08 +02005
6# Install Chef
7RUN set -ex && \
Michael Landoc789e6f2018-05-03 18:05:37 +03008 apk add --no-cache \
9 jq=1.5-r5 \
Michael Lando18cba5c2018-06-03 18:06:57 +030010 curl=7.60.0-r1 \
11 curl-dev=7.60.0-r1 \
Michael Landoc789e6f2018-05-03 18:05:37 +030012 openssl-dev=1.0.2o-r0 \
13 vim=8.0.1359-r0 \
14 bash=4.4.19-r1 \
15 build-base=0.5-r0 \
16 ruby=2.4.4-r0 \
17 ruby-dev=2.4.4-r0 \
18 libffi-dev=3.2.1-r4 \
19 libxml2-dev=2.9.7-r0 && \
20 gem install \
21 chef:13.8.5 \
22 berkshelf:6.3.1 \
23 io-console:0.4.6 \
Gary Wuf2da63d2018-05-07 17:21:22 -070024 --no-document && \
25 echo "http://nl.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories && \
26 apk update && \
27 apk add binutils=2.30-r1 jq=1.6_rc1-r1 libtasn1=4.13-r0
Areli Fuss0a3899f2017-11-19 13:28:08 +020028
Areli, Fuss (af732p)10576b52018-03-25 14:22:44 +030029# Replace Jetty user ID
30COPY set_jetty_user.sh /tmp/set_jetty_user.sh
31RUN sh -x /tmp/set_jetty_user.sh && rm -f /tmp/set_jetty_user.sh
32RUN chown -R jetty:jetty ${JETTY_BASE}/webapps /var/lib/jetty
Areli, Fuss (af732p)87faf9c2018-03-25 14:22:44 +030033
Areli Fuss0a3899f2017-11-19 13:28:08 +020034USER jetty
35