-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
39 lines (29 loc) · 1.08 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
FROM node:8.16.2-alpine
MAINTAINER Fabio Rauber <fabiorauber@gmail.com>
ENV REDIS_SERVER="redis" \
REDIS_PORT="6379"
LABEL xo-server=5.56.0 xo-web=5.56.1
ENV USER=node USER_HOME=/home/node XOA_PLAN=5 DEBUG=xo:main
# Upgrade yarn
RUN apk update && apk upgrade && \
apk add --no-cache git python g++ make libc6-compat curl
WORKDIR /home/node
RUN git clone -b master http://github.com/vatesfr/xen-orchestra && \
rm -rf xen-orchestra/.git xen-orchestra/sample.config.yaml && \
cd /home/node/xen-orchestra && yarn && yarn build && \
# install plugins
npm install --global \
xo-server-auth-ldap \
xo-server-transport-email \
xo-server-usage-report \
xo-server-backup-reports \
xo-server-load-balancer \
xo-import-servers-csv && \
# clean a bit
apk del git python g++ make && \
rm -rf /root/.cache /root/.node-gyp /root/.npm
COPY xo-server.config.yaml /home/node/xen-orchestra/packages/xo-server/.xo-server.yaml
EXPOSE 80
ADD start.sh /usr/local/bin/start.sh
RUN chmod a+x /usr/local/bin/start.sh
CMD ["/usr/local/bin/start.sh"]