Change to jebian jessie
This commit is contained in:
parent
0cd7705221
commit
8d6a94fbbb
|
@ -5,23 +5,35 @@ FROM debian:jessie
|
||||||
|
|
||||||
MAINTAINER Theodotos Andreou theodotos.andreou@puri.sm
|
MAINTAINER Theodotos Andreou theodotos.andreou@puri.sm
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
RUN apt-get update
|
apt-get -q -y dist-upgrade && \
|
||||||
RUN apt-get -y dist-upgrade
|
apt-get install -q -y --no-install-recommends && \
|
||||||
RUN apt-get install -y software-properties-common python-software-properties python-pip python-dev libxml2-dev libxslt1-dev zlib1g-dev libffi-dev libyaml-dev libssl-dev libsasl2-dev libldap2-dev npm git python-virtualenv && \
|
software-properties-common \
|
||||||
|
python-software-properties \
|
||||||
|
python-pip python-dev \
|
||||||
|
libxml2-dev \
|
||||||
|
libxslt1-dev \
|
||||||
|
zlib1g-dev \
|
||||||
|
libffi-dev \
|
||||||
|
libyaml-dev \
|
||||||
|
libssl-dev \
|
||||||
|
libsasl2-dev \
|
||||||
|
libldap2-dev \
|
||||||
|
npm git \
|
||||||
|
python-virtualenv && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
RUN ln -s /usr/bin/nodejs /usr/bin/node && \
|
RUN ln -s /usr/bin/nodejs /usr/bin/node && \
|
||||||
npm install -g bower clean-css
|
npm install -g bower clean-css
|
||||||
|
|
||||||
RUN useradd -m -d /var/lib/realms -s /bin/bash wiki
|
RUN useradd -ms /bin/bash wiki
|
||||||
|
|
||||||
USER wiki
|
USER wiki
|
||||||
|
|
||||||
RUN git clone https://github.com/scragg0x/realms-wiki /var/lib/realms/realms-wiki
|
RUN git clone https://github.com/scragg0x/realms-wiki /home/wiki/realms-wiki
|
||||||
|
|
||||||
WORKDIR /var/lib/realms/realms-wiki
|
WORKDIR /home/wiki/realms-wiki
|
||||||
|
|
||||||
RUN virtualenv .venv && \
|
RUN virtualenv .venv && \
|
||||||
. .venv/bin/activate && \
|
. .venv/bin/activate && \
|
||||||
|
@ -33,11 +45,11 @@ ENV WORKERS=3
|
||||||
ENV GEVENT_RESOLVER=ares
|
ENV GEVENT_RESOLVER=ares
|
||||||
|
|
||||||
ENV REALMS_ENV=docker
|
ENV REALMS_ENV=docker
|
||||||
ENV REALMS_WIKI_PATH=/var/lib/realms/data/repo
|
ENV REALMS_WIKI_PATH=/home/wiki/data/repo
|
||||||
ENV REALMS_DB_URI='sqlite:////var/lib/realms/data/wiki.db'
|
ENV REALMS_DB_URI='sqlite:////home/wiki/data/wiki.db'
|
||||||
|
|
||||||
RUN mkdir /var/lib/realms/data && touch /var/lib/realms/data/.a
|
RUN mkdir /home/wiki/data && touch /home/wiki/data/.a
|
||||||
VOLUME /var/lib/realms/data
|
VOLUME /home/wiki/data
|
||||||
|
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
|
@ -49,5 +61,5 @@ CMD . .venv/bin/activate && \
|
||||||
--worker-class gevent \
|
--worker-class gevent \
|
||||||
--workers ${WORKERS} \
|
--workers ${WORKERS} \
|
||||||
--bind 0.0.0.0:5000 \
|
--bind 0.0.0.0:5000 \
|
||||||
--chdir /var/lib/realms/realms-wiki \
|
--chdir /home/wiki/realms-wiki \
|
||||||
'realms:create_app()'
|
'realms:create_app()'
|
||||||
|
|
Loading…
Reference in a new issue