forked from paultag/moxie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (32 loc) · 1004 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
38
39
40
41
42
43
# VERSION 0.1
FROM debian:unstable
MAINTAINER Paul R. Tagliamonte <paultag@debian.org>
RUN echo "deb-src http://http.debian.net/debian/ unstable main" >> /etc/apt/sources.list
RUN apt-get update && apt-get install -y \
python3.4 \
python3-pip \
git \
node-uglify \
node-less \
coffeescript \
locales locales-all
RUN locale-gen en_US.UTF-8
RUN dpkg-reconfigure locales -phigh
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV PYTHONIOENCODING utf-8
RUN apt-get update && apt-get build-dep -y python3-psycopg2 python3-cryptography
RUN mkdir -p /opt/pault.ag/
ADD . /opt/pault.ag/moxie/
RUN cd /opt/pault.ag/moxie; python3.4 /usr/bin/pip3 install \
slacker websockets aiohttp
# Hurm. Why?
RUN cd /opt/pault.ag/moxie; python3.4 /usr/bin/pip3 install -r \
requirements.txt
RUN python3.4 /usr/bin/pip3 install -e \
/opt/pault.ag/moxie/
RUN make -C /opt/pault.ag/moxie/
RUN mkdir -p /moxie/
WORKDIR /moxie/
CMD ["moxied"]