-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile
28 lines (20 loc) · 842 Bytes
/
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
FROM alpine:3.7
ENV PERL_MM_USE_DEFAULT 1
RUN apk add --update && \
apk add nginx wget unzip make zip perl perl-cgi perl-fcgi perl-cgi-session perl-error perl-json perl-file-copy-recursive
RUN perl -MCPAN -e 'install Crypt::PasswdMD5'
RUN wget --no-check-certificate https://github.com/foswiki/distro/releases/download/FoswikiRelease02x01x06/Foswiki-2.1.6.zip
RUN mkdir -p /var/www && \
mv Foswiki-2.1.6.zip /var/www && \
cd /var/www && \
unzip Foswiki-2.1.6.zip -d /var/www/ && \
mv Foswiki-2.1.6 foswiki && \
rm -rf Foswiki-2.1.6.zip && \
cd foswiki && \
sh tools/fix_file_permissions.sh && \
mkdir -p /run/nginx && \
mkdir -p /etc/nginx/conf.d
COPY nginx.default.conf /etc/nginx/conf.d/default.conf
COPY docker-entrypoint.sh docker-entrypoint.sh
EXPOSE 80
CMD ["sh", "docker-entrypoint.sh"]