Last active
August 28, 2016 09:21
-
-
Save mpapec/edd39fe639bb6ecd862710260c78ca90 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# docker build -t mpapec/convos . | |
FROM alpine:3.4 | |
MAINTAINER Convos@Mojo | |
RUN apk update && \ | |
apk add perl perl-io-socket-ssl perl-dev g++ make openssl openssl-dev wget curl && \ | |
curl -L https://goo.gl/kDpvKZ | tar xvz && \ | |
ln -s /convos-stable /convos && \ | |
cd /convos && \ | |
perl script/convos install && \ | |
apk del perl-dev g++ make openssl openssl-dev wget curl && \ | |
rm -rf /root/.cpanm/* /usr/local/share/man/* | |
# USER daemon | |
WORKDIR /convos | |
ENV CONVOS_HOME /data | |
VOLUME ["/data"] | |
EXPOSE 3000 | |
CMD ["perl", "script/convos", "daemon"] | |
# docker run -it --rm -p 3000:3000 -v /tmp/data:/data mpapec/convos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment