-
Notifications
You must be signed in to change notification settings - Fork 84
/
Dockerfile
34 lines (29 loc) · 1.01 KB
/
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
# docker pull ghcr.io/convos-chat/convos:alpha
#
# 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 ghcr.io/convos-chat/convos-base:main
LABEL maintainer="[email protected]"
RUN mkdir /app
COPY Changes Makefile.PL /app/
COPY assets /app/assets
COPY lib /app/lib
COPY public /app/public
COPY script /app/script
COPY templates /app/templates
ENV CONVOS_DEPENDENCIES all
RUN apk add --no-cache curl openssl perl perl-io-socket-ssl perl-net-ssleay 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"]