-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
43 lines (34 loc) · 1.21 KB
/
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
38
39
40
41
42
43
FROM python:3.5
MAINTAINER Edu Herraiz <[email protected]>
# ENV NVM_VERSION v0.32.1
# ENV NODE_VERSION 6.9.1
# ENV NVM_DIR /app/.nvm
# Install system requirements
# COPY docker/system-requirements.txt /system-requirements.txt
# RUN \
# apt-get update \
# && apt-get -y upgrade \
# && apt-get -y autoremove \
# && xargs apt-get -y -q install < /system-requirements.txt \
# && rm -rf /var/lib/apt/lists/*
RUN pip install uwsgi
WORKDIR /app
# Install Nvm and Nodejs
# RUN git clone https://github.com/creationix/nvm.git /app/.nvm -b $NVM_VERSION
# RUN echo $NODE_VERSION > /app/.nvmrc
# COPY package.json /app/package.json
# RUN chmod +x $NVM_DIR/nvm.sh
# RUN \. $NVM_DIR/nvm.sh && nvm install && nvm alias default $NODE_VERSION && npm install
COPY requirements.txt /requirements.txt
# ignore-installed added for this problem with overlay fs: https://github.com/docker/docker/issues/12327
RUN pip install --ignore-installed -r /requirements.txt
COPY docker/uwsgi.ini /uwsgi.ini
COPY server /app
COPY docker/app.ini.docker /app/app.ini
RUN python manage.py collectstatic --noinput
VOLUME /app
VOLUME /data
COPY docker/docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["uwsgi"]
EXPOSE 8000 3031