-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_production
45 lines (34 loc) · 1.1 KB
/
Dockerfile_production
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
#
# ojo-bot production stack
#
# Pat Cappelaere Vightel
#
FROM cappelaere/ojo_publisher_base_stack:v1
MAINTAINER Pat Cappelaere <[email protected]>
COPY app /app/user/app
COPY config /app/user/config
COPY lib /app/user/lib
COPY locale /app/user/locale
COPY models /app/user/models
COPY public /app/user/public
COPY python /app/user/python
COPY data /app/user/tmp
COPY server.js /app/user/server.js
COPY qserver.js /app/user/qserver.js
COPY settings.js /app/user/settings.js
COPY package.json /app/user/package.json
COPY README.md /app/user/README.md
#COPY Procfile /app/user
COPY envs.docker.sh /app/user/envs.docker.sh
# Add to .basrc to have envs available when you run the shell
RUN echo 'source /app/user/envs.docker.sh' >> ~/.bashrc
COPY envs.docker.sh /etc/profile.d
WORKDIR /app/user
#RUN npm install
# Alternate npm install when very poor connection
RUN npm config set registry http://registry.npmjs.org/
RUN npm config set strict-ssl=false
RUN npm install --loglevel=verbose
# make vim available to change files right in vm environment
RUN apt-get install -y vim