forked from fossasia/query-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (20 loc) · 615 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
FROM node:boron
MAINTAINER Afroz Ahamad <enigmaeth@gmail.com>
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
RUN apt-get update
# install deps
RUN apt-get install -y --no-install-recommends build-essential python-dev libpq-dev libevent-dev libmagic-dev python-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 bower install
RUN pip install -r requirements.txt
# Bundle app source
COPY . /usr/src/app
EXPOSE 7001
CMD [ "python", "app/server.py" ]