41 lines
967 B
Docker
41 lines
967 B
Docker
FROM alpine:edge
|
|
|
|
# enable edge repos including testing
|
|
RUN printf '%s\n' \
|
|
"https://dl-cdn.alpinelinux.org/alpine/edge/main" \
|
|
"https://dl-cdn.alpinelinux.org/alpine/edge/community" \
|
|
"https://dl-cdn.alpinelinux.org/alpine/edge/testing" \
|
|
> /etc/apk/repositories
|
|
|
|
RUN apk update && apk add --no-cache \
|
|
openssl \
|
|
openssl-libs-static \
|
|
nodejs \
|
|
npm \
|
|
thelounge \
|
|
ngircd \
|
|
tor \
|
|
su-exec \
|
|
bash \
|
|
tini
|
|
|
|
RUN addgroup -S app && adduser -S -G app app
|
|
|
|
ENV DATA_DIR=/data
|
|
ENV TOR_DIR=${DATA_DIR}/tor
|
|
ENV THELOUNGE_DIR=${DATA_DIR}/thelounge
|
|
ENV NGIRCD_DIR=${DATA_DIR}/ngircd
|
|
|
|
RUN mkdir -p ${TOR_DIR} ${THELOUNGE_DIR} ${NGIRCD_DIR}
|
|
|
|
COPY entrypoint.sh /usr/local/bin/
|
|
COPY ngircd.conf.template /etc/ngircd/
|
|
COPY ngircd.motd /etc/ngircd/
|
|
COPY torrc /etc/tor/
|
|
COPY thelounge-config.js.template /
|
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
|
|
|
EXPOSE 9000
|
|
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/entrypoint.sh"]
|
|
CMD ["bash"]
|