-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
46 lines (35 loc) · 939 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM alpine:3.6
ENV ALPINE_VERSION=3.6
# Install needed packages. Notes:
# * nodejs: Node.js and NPM
# * mongodb: MongoDB to act as DB.
# * Git: Git to store wiki-js documents
# * Curl: Curl for downloads.
# * nodejs-npm: Required for Wikijs install
# * bash: Required for Wikijs install
# * supervisor: Control starting of applications
# Set work directory for WikiJS install
WORKDIR /var/wiki
# Replace with your email address:
ENV WIKI_ADMIN_EMAIL [email protected]
ENV PACKAGES="\
nodejs \
mongodb \
git \
curl \
nodejs-npm \
bash \
supervisor \
"
RUN apk --update add --no-cache $PACKAGES \
&& echo
# Add files
ADD files/supervisord.conf /etc/supervisord.conf
# Replace your-config.yml with the path to your config file:
# ADD files/config-structa.yml /var/wiki/config.yml
# Expose port 3000 for Wikijs
EXPOSE 3000
# Entrypoint
ADD start2.sh /
RUN chmod u+x /start2.sh
CMD /start2.sh