-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
38 lines (30 loc) · 858 Bytes
/
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
FROM node:14
MAINTAINER Daniel Phillips (http://danp.us)
# timezone
RUN echo "Etc/UTC" > /etc/timezone && \
dpkg-reconfigure -f noninteractive tzdata
# install packages
# libfontconfig1 is for phantomjs
# imagemagick for image resizing
# bzip2 is for phantomjs
RUN apt-get -y update && apt-get install -y --fix-missing \
apt-utils \
curl \
git \
nano \
wget \
libfontconfig1 \
imagemagick \
bzip2 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
mkdir -p /opt/app
ENV DOMINUS_TEST=false HTTP_FORWARDED_COUNT=1 PORT=80 TERM=xterm OPENSSL_CONF=/etc/ssl/
ADD .build/dominus.tar.gz /opt/app/
WORKDIR /opt/app/bundle/programs/server
RUN npm install --unsafe-perm
WORKDIR /opt/app/bundle/programs/server/npm
RUN npm rebuild
WORKDIR /opt/app/bundle
EXPOSE 80
CMD ["node", "main.js"]