-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
27 lines (23 loc) · 958 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
FROM debian:latest
MAINTAINER Ankit R Gadiya <[email protected]>
# Packages _____________________________________________________________________
RUN apt-get update \
&& apt-get install -y \
nginx \
fcgiwrap \
python \
ikiwiki \
libxml-writer-perl \
&& rm -rf /var/lib/apt/lists/*
#_______________________________________________________________________________
# Configuration and Scripts ____________________________________________________
COPY config/nginx.conf /etc/nginx/sites-available/ikiwiki
COPY script/* /opt/
RUN ln -v /etc/nginx/sites-available/ikiwiki /etc/nginx/sites-enabled/ikiwiki \
&& rm /etc/nginx/sites-enabled/default
#_______________________________________________________________________________
VOLUME /wiki
# Server _______________________________________________________________________
EXPOSE 80
CMD ["bash", "/opt/docker-entrypoint.sh"]
#_______________________________________________________________________________