forked from DemocraciaEnRed/pp-mgp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
62 lines (47 loc) · 1.7 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
51
52
53
54
55
56
57
58
59
60
61
62
FROM node:8
RUN npm config set python python2.7
WORKDIR /usr/src
COPY ["package.json", "."]
COPY ["package-lock.json", "."]
ENV NODE_ENV=production \
NODE_PATH=/usr/src
#para debuggear:
#RUN npm install --verbose
#RUN npm install --quiet
RUN npm ci --quiet
RUN mkdir ext
COPY ["ext/package.json", "ext"]
RUN mkdir bin
COPY ["bin/dos-ext-install", "bin"]
# Para windows habilitar esto:
#RUN sudo apt-get install dos2unix
#RUN sed 's/\r//g' -i bin/dos-ext-install
RUN bin/dos-ext-install --quiet
COPY [".", "/usr/src/"]
COPY ./dos-override/lib/api-v2/topics/csv.js /usr/src/lib/api-v2/topics/csv.js
ENV LOCALE=es \
ENFORCE_LOCALE=true \
AVAILABLE_LOCALES=es,en \
JWT_SECRET= \
MODERATOR_ENABLED=true \
MULTI_FORUM=true \
RESTRICT_FORUM_CREATION=true \
FORUM_PROYECTOS=proyectos \
FAVICON=/ext/lib/boot/favicon.ico \
LOGO=/ext/lib/boot/logo.png \
LOGO_MOBILE=/ext/lib/boot/logo.png \
NOTIFICATIONS_MAILER_NAME='Presupuesto Participativo de la Universidad Nacional de Mar del Plata' \
ORGANIZATION_NAME='Presupuesto Participativo' \
SOCIALSHARE_SITE_NAME='Presupuesto Participativo de la Universidad Nacional de Mar del Plata' \
SOCIALSHARE_SITE_DESCRIPTION='Plataforma de participación ciudadana de de la Universidad Nacional de Mar del Plata.' \
SOCIALSHARE_IMAGE=https://cldup.com/xjWy914AyG.jpg \
SOCIALSHARE_TWITTER_USERNAME=@munimardelplata \
TWEET_TEXT={topic.mediaTitle} \
HEADER_BACKGROUND_COLOR=#ffffff \
HEADER_FONT_COLOR=#4a4949
RUN npm run build -- --minify
EXPOSE 3000
CMD ["node", "."]