diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2dd65e1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,49 @@ +########################################################## +# /!\ 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 + +# Base system setup + +RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ + 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 \ + curl \ + build-essential \ + libzmq-dev \ + python-dev \ + python-virtualenv \ + && apt-get clean + +USER app + +RUN mkdir -p /home/app/syncserver +WORKDIR /home/app/syncserver + +RUN curl -L https://github.com/mozilla-services/syncserver/tarball/master |\ + tar xzf - --strip-components=1 + +RUN make build + +# Run the Sync server + +EXPOSE 5000 + +ENTRYPOINT ["/usr/bin/make"] +CMD ["serve"]