Skip to content

Instantly share code, notes, and snippets.

@mpapec
Last active August 28, 2016 09:21
Show Gist options
  • Save mpapec/edd39fe639bb6ecd862710260c78ca90 to your computer and use it in GitHub Desktop.
Save mpapec/edd39fe639bb6ecd862710260c78ca90 to your computer and use it in GitHub Desktop.
# 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