forked from fossasia/query-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (25 loc) · 665 Bytes
/
Dockerfile
File metadata and controls
32 lines (25 loc) · 665 Bytes
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
FROM node:boron
MAINTAINER Afroz Ahamad <enigmaeth@gmail.com>
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
python3-dev \
libpq-dev \
libevent-dev \
libmagic-dev \
python3-pip && apt-get clean -y
# copy requirements
COPY package.json /usr/src/app/
COPY bower.json /usr/src/app/
COPY .bowerrc /usr/src/app
COPY requirements.txt /usr/src/app/
# install requirements
RUN npm install
RUN npm install --global bower
RUN bower --allow-root install
RUN pip3 install -r requirements.txt
# Bundle app source
COPY . /usr/src/app
EXPOSE 7001
CMD [ "python3", "app/server.py" ]