forked from tklk-archives/testlink-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 687 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (20 loc) · 687 Bytes
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
FROM alpine:3.9
USER root
VOLUME /var/testlink/
RUN \
apk add wget ca-certificates --update-cache && \
wget -q -O - https://github.com/TestLinkOpenSourceTRMS/testlink-code/archive/1.9.19.tar.gz | tar zxf - && \
mkdir -p /var && \
mv testlink-* /var/testlink && \
rm -rf testlink* && \
chmod 777 -R /var/testlink/gui/templates_c && \
mkdir -p /var/testlink/logs && \
mkdir -p /var/testlink/upload_area && \
chmod 777 -R /var/testlink/logs && \
chmod 777 -R /var/testlink/upload_area
ADD *.php /var/testlink/
ENTRYPOINT tail -f /dev/null
RUN adduser -D -H -S testlink
RUN chown -R testlink:root /var/testlink/ \
&& chmod -R ug+rw /var/testlink/
USER testlink