scratch0-5 / lively /Dockerfile
soiz1's picture
Upload folder using huggingface_hub
8f3f8db verified
FROM node:8
MAINTAINER Robert Krahn <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update; \
apt-get upgrade -y; \
apt-get -y install curl git bzip2 unzip zip \
lsof sysstat dnsutils \
sudo
# lively user, password: lively
# openssl passwd -1 lively
RUN /usr/sbin/useradd \
--create-home --home-dir /home/lively \
--shell /bin/bash \
--groups sudo \
--password "$1$AvxnsNsn$jUwLZCqF3uxnKgXLUqyX41" \
lively
# nodejs tooling
RUN npm install -g \
nodemon forever
# For the Lively spell checker:
RUN apt-get install -y aspell
# lively
ENV WORKSPACE_LK=/home/lively/LivelyKernel \
HOME=/home/lively \
livelyport=9001
USER lively
WORKDIR /home/lively/LivelyKernel
EXPOSE 9001-9004
CMD rm "*.pid" >/dev/null 2>&1; \
echo "setting file owners" && sudo chown -R lively . 2>/dev/null; \
test ! -d PartsBin && echo "downloading PartsBin" && \
curl https://lively-web.org/nodejs/PartsBinCopy/ > PartsBin.zip && \
unzip -n PartsBin.zip && rm PartsBin.zip; \
echo "starting Lively server" && forever bin/lk-server.js \
--port 9001 --host 0.0.0.0 --behind-proxy \
--db-config '{"enableRewriting":false,"enableVersioning":false}'