-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
61 lines (47 loc) · 1.65 KB
/
Dockerfile
File metadata and controls
61 lines (47 loc) · 1.65 KB
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
# Base Image
FROM ubuntu:18.04
MAINTAINER iReceptor Plus <info@ireceptor-plus.com>
# Install OS Dependencies
RUN DEBIAN_FRONTEND='noninteractive' apt-get update
RUN DEBIAN_FRONTEND='noninteractive' apt-get install -y \
make \
gcc g++ \
redis-server \
redis-tools \
sendmail-bin \
supervisor \
wget \
xz-utils
# node
ENV NODE_VER v12.18.3
RUN wget https://nodejs.org/dist/$NODE_VER/node-$NODE_VER-linux-x64.tar.xz
RUN tar xf node-$NODE_VER-linux-x64.tar.xz
RUN cp -rf /node-$NODE_VER-linux-x64/bin/* /usr/bin
RUN cp -rf /node-$NODE_VER-linux-x64/lib/* /usr/lib
RUN cp -rf /node-$NODE_VER-linux-x64/include/* /usr/include
RUN cp -rf /node-$NODE_VER-linux-x64/share/* /usr/share
# DISABLE: postfix until we need email capabilities
# Setup postfix
# The postfix install won't respect noninteractivity unless this config is set beforehand.
#RUN mkdir /etc/postfix
#RUN touch /etc/mailname
#COPY docker/postfix/main.cf /etc/postfix/main.cf
COPY docker/scripts/start-service.sh /root/start-service.sh
# Debian vociferously complains if you try to install postfix and sendmail at the same time.
#RUN DEBIAN_FRONTEND='noninteractive' apt-get install -y -q \
# postfix
##################
##################
RUN mkdir /analysis-js-tapis
# Setup redis
COPY docker/redis/redis.conf /etc/redis/redis.conf
# Setup supervisor
COPY docker/supervisor/supervisor.conf /etc/supervisor/conf.d/
# Install npm dependencies (optimized for cache)
COPY package.json /analysis-js-tapis/
RUN cd /analysis-js-tapis && npm install
# Copy project source
COPY . /analysis-js-tapis
# ESLint
RUN cd /analysis-js-tapis && npm run eslint app
CMD ["/root/start-service.sh"]