-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Dockerfile
40 lines (33 loc) · 1.21 KB
/
Dockerfile
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
#checkov:skip=CKV_DOCKER_2:Ensure that HEALTHCHECK instructions have been added to container images
#checkov:skip=CKV_DOCKER_3:Ensure that a user for the container has been created
ARG IMAGE=netsandbox/request-tracker-base
ARG TAG=latest
FROM ${IMAGE}:${TAG}
LABEL org.opencontainers.image.authors="Christian Loos <[email protected]>"
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
WORKDIR /usr/local/src
# hadolint ignore=DL3003,SC2174
RUN curl -fsSL "https://download.bestpractical.com/pub/rt/release/rt-5.0.7.tar.gz" -o rt.tar.gz \
&& echo "1a1a4838979f08c58e67642686e4fd980e1f4ee98e144ff8a56f870f37162cce rt.tar.gz" | sha256sum -c \
&& tar -xzf rt.tar.gz \
&& cd rt-5.0.7 \
&& ./configure \
--enable-developer \
--enable-externalauth \
--enable-gd \
--enable-gpg \
--enable-graphviz \
--enable-smime \
--with-db-type=SQLite \
--with-web-handler=standalone \
&& make install \
&& mkdir --mode=0600 --parents /opt/rt5/var/data/{gpg,smime} \
&& make initialize-database \
&& cd .. && rm -rf /usr/local/src/*
WORKDIR /opt/rt5
COPY RT_SiteConfig.pm etc/
VOLUME /opt/rt5
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
EXPOSE 80
CMD ["/opt/rt5/sbin/rt-server"]