forked from OCHA-DAP/tools-quickcharts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
50 lines (44 loc) · 1.38 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
40
41
42
43
44
45
46
47
48
49
50
FROM alpine:3.5
#FROM unocha/hdx-hxlpreview-builder
MAINTAINER "Serban Teodorescu <[email protected]>"
#ENV NODE_PATH=/usr/lib/node_modules \
ENV SRC_DIR=/src \
DST_DIR=/srv/www \
NPM_CONFIG_PROGRESS=false \
NPM_CONFIG_SPIN=false
#COPY . ${SRC_DIR}/
#RUN mkdir -p ${DST_DIR} && \
# apk add --update --virtual .build-deps \
# build-base \
# git \
# nodejs-lts \
# rsync \
# ruby-bundler \
# ruby-dev \
# libffi-dev \
# python && \
# gem install --no-document \
# bootstrap-sass \
# font-awesome-sass \
# sass-globbing \
# compass && \
# apk add --update nginx && \
# mkdir -p /run/nginx && \
# mv ${SRC_DIR}/env/etc/nginx/conf.d/default.conf /etc/nginx/conf.d/ && \
# cd ${SRC_DIR} && \
# npm install && \
# #./node_modules/angular-cli/bin/ng test --watch=false && \
# ./node_modules/angular-cli/bin/ng build --prod --bh /hxlpreview/ && \
# cd / && \
# rsync -avh --delete-after ${SRC_DIR}/dist/* ${DST_DIR}/ && \
# rm -rf ${SRC_DIR} && \
# npm cache clean && \
# apk del .build-deps && \
# rm -rf /usr/lib/ruby && \
# rm -rf /tmp/* && \
# rm -rf /var/cache/apk/*
RUN apk add --update nginx && \
mkdir -p /run/nginx
COPY ./env/etc/nginx/conf.d/default.conf /etc/nginx/conf.d/
COPY ./dist ${DST_DIR}
ENTRYPOINT ["nginx", "-g", "daemon off;"]