2014-11-15 17:24:32 +01:00
|
|
|
##########################################################
|
|
|
|
# /!\ WARNING /!\ #
|
|
|
|
# This is completely experimental. Use at your own risk. #
|
|
|
|
# Also, learn you some docker: #
|
|
|
|
# http://docker.io/gettingstarted #
|
|
|
|
##########################################################
|
|
|
|
|
|
|
|
FROM debian:7.4
|
|
|
|
MAINTAINER Dan Callahan <dan.callahan@gmail.com>
|
|
|
|
|
|
|
|
# Base system setup
|
|
|
|
|
2014-12-30 17:54:53 +01:00
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
|
|
|
|
&& apt-get install --no-install-recommends -y \
|
2014-11-15 17:24:32 +01:00
|
|
|
vim locales \
|
|
|
|
&& apt-get clean
|
|
|
|
|
|
|
|
RUN locale-gen C.UTF-8 && LANG=C.UTF-8 /usr/sbin/update-locale
|
|
|
|
|
|
|
|
ENV LANG C.UTF-8
|
|
|
|
|
|
|
|
RUN useradd --create-home app
|
|
|
|
|
|
|
|
# Build the Sync server
|
|
|
|
|
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
|
|
|
|
ca-certificates \
|
|
|
|
build-essential \
|
|
|
|
libzmq-dev \
|
|
|
|
python-dev \
|
|
|
|
python-virtualenv \
|
|
|
|
&& apt-get clean
|
|
|
|
|
|
|
|
USER app
|
|
|
|
|
|
|
|
RUN mkdir -p /home/app/syncserver
|
2014-12-30 17:54:53 +01:00
|
|
|
ADD Makefile *.ini *.wsgi *.rst *.txt *.py /home/app/syncserver/
|
|
|
|
ADD ./syncserver/ /home/app/syncserver/syncserver/
|
2014-11-15 17:24:32 +01:00
|
|
|
WORKDIR /home/app/syncserver
|
|
|
|
|
|
|
|
RUN make build
|
|
|
|
|
|
|
|
# Run the Sync server
|
|
|
|
|
|
|
|
EXPOSE 5000
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/make"]
|
|
|
|
CMD ["serve"]
|