summaryrefslogtreecommitdiffstats
path: root/base_sdc-jetty/Dockerfile
blob: 2bab202bbb339472df040b0281e70a452bf77b19 (plain)
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
FROM jetty:9.4-jre8-alpine

USER root


# Install Chef
RUN set -ex && \
    apk update && \
    apk add --no-cache \
        jq \
        curl \
        curl-dev \
        libressl-dev \
        vim=8.1.0115-r0 \
        bash \
        build-base \
        ruby=2.5.2-r0 \
        ruby-dev \
        libffi-dev \
        libxml2-dev && \
    gem install \
        chef:13.8.5 \
        berkshelf:6.3.1 \
        io-console:0.4.6 \
        etc webrick \
        --no-document && \
    echo "http://nl.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories && \
    apk update && \
    apk add binutils jq libtasn1

# Replace Jetty user ID
COPY set_jetty_user.sh /tmp/set_jetty_user.sh
RUN sh -x /tmp/set_jetty_user.sh && rm -f /tmp/set_jetty_user.sh && chown -R jetty:jetty ${JETTY_BASE}/webapps /var/lib/jetty

USER jetty