forked from convos-chat/convos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (27 loc) · 924 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (27 loc) · 924 Bytes
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
# convos/convos
#
# See https://convos.chat/doc/config.html for details about the environment variables
#
# BUILD: docker build --no-cache --rm -t convos/convos .
# RUN: docker run -it --rm -p 8080:3000 -v /var/convos/data:/data convos/convos
FROM alpine:3.12
LABEL maintainer="jhthorsen@cpan.org"
RUN mkdir /app
COPY Changes cpanfile /app/
COPY assets /app/assets
COPY lib /app/lib
COPY public /app/public
COPY script /app/script
COPY templates /app/templates
RUN apk add --no-cache openssl perl perl-io-socket-ssl wget && \
apk add --no-cache --virtual builddeps build-base perl-dev && \
/app/script/convos install --all && \
apk del builddeps && rm -rf /root/.cpanm /var/cache/apk/*
# Do not change these variables unless you know what you're doing
ENV CONVOS_HOME /data
ENV CONVOS_NO_ROOT_WARNING 1
ENV MOJO_MODE production
VOLUME ["/data"]
EXPOSE 3000
CMD ["daemon"]
ENTRYPOINT ["/app/script/convos"]