Skip to content
This repository was archived by the owner on Nov 15, 2019. It is now read-only.

Commit 87e4913

Browse files
committed
Merge branch 'master' into release
2 parents f4b5008 + 0eafe44 commit 87e4913

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

hackmd/Dockerfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
FROM node:boron-wheezy
1+
FROM node:boron
22
ENV DEBIAN_FRONTEND noninteractive
33
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
44
wget -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | apt-key add - && \
55
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
87

98
# source
109
RUN mkdir /hackmd
@@ -24,6 +23,13 @@ ADD docker-entrypoint.sh /hackmd/docker-entrypoint.sh
2423
# build front-end bundle
2524
RUN npm run build:prod
2625

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+
2733
EXPOSE 3000
2834

2935
CMD ["/bin/bash", "/hackmd/docker-entrypoint.sh"]

hackmd/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"production": {
33
"urladdport": true,
4+
"email": true,
45
"db": {
56
"username": "hackmd",
67
"password": "hackmdpass",

0 commit comments

Comments
 (0)