forked from WeAllCode/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (26 loc) · 808 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
FROM python:2.7
MAINTAINER CoderDojoChi
RUN apt-get update \
&& apt-get install -y curl memcached python-memcache
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN apt-get install -y nodejs
ENV DIR_BUILD /build
ENV DIR_SRC /src
RUN mkdir -p $DIR_BUILD
RUN mkdir -p $DIR_SRC
WORKDIR $DIR_SRC
COPY package.json $DIR_SRC/package.json
RUN npm install
COPY requirements.txt $DIR_SRC/
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
COPY gulp $DIR_SRC/gulp
COPY gulpfile.js $DIR_SRC/
COPY manage.py $DIR_SRC/
COPY coderdojochi $DIR_SRC/coderdojochi
COPY fixtures $DIR_SRC/fixtures
COPY gunicorn.conf.py $DIR_BUILD/gunicorn.conf.py
COPY logging.conf $DIR_BUILD/logging.conf
COPY memcached.conf /etc/memcached.conf
COPY deploy.sh $DIR_SRC/deploy.sh
CMD $DIR_SRC/deploy.sh