This repository was archived by the owner on Nov 15, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
- FROM node:boron-wheezy
1
+ FROM node:boron
2
2
ENV DEBIAN_FRONTEND noninteractive
3
3
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
4
4
wget -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | apt-key add - && \
5
5
apt-get update && \
6
- apt-get install -y git postgresql-client-9.4 && \
7
- apt-get clean && apt-get purge && rm -r /var/lib/apt/lists/*
6
+ apt-get install -y git postgresql-client-9.6 build-essential
8
7
9
8
# source
10
9
RUN mkdir /hackmd
@@ -24,6 +23,13 @@ ADD docker-entrypoint.sh /hackmd/docker-entrypoint.sh
24
23
# build front-end bundle
25
24
RUN npm run build:prod
26
25
26
+ # remove dev dependencies
27
+ RUN npm prune --production
28
+
29
+ # remove build dependencies
30
+ RUN apt-get remove -y --auto-remove build-essential && \
31
+ apt-get clean && apt-get purge && rm -r /var/lib/apt/lists/*
32
+
27
33
EXPOSE 3000
28
34
29
35
CMD ["/bin/bash" , "/hackmd/docker-entrypoint.sh" ]
Original file line number Diff line number Diff line change 1
1
{
2
2
"production" : {
3
3
"urladdport" : true ,
4
+ "email" : true ,
4
5
"db" : {
5
6
"username" : " hackmd" ,
6
7
"password" : " hackmdpass" ,
You can’t perform that action at this time.
0 commit comments