2015-10-24 19:45:44 +00:00
|
|
|
#
|
|
|
|
# Thanks to @Xe for the Dockerfile template
|
|
|
|
# https://github.com/Shuo-IRC/Shuo/pull/87/files
|
|
|
|
#
|
|
|
|
|
|
|
|
FROM node:4.0-onbuild
|
|
|
|
|
2016-02-10 05:02:31 +00:00
|
|
|
# Create a non-root user for lounge to run in.
|
|
|
|
RUN useradd --create-home lounge
|
2015-10-24 19:45:44 +00:00
|
|
|
|
|
|
|
# Needed for setup of Node.js
|
2016-02-10 05:02:31 +00:00
|
|
|
ENV HOME /home/lounge
|
2015-10-24 19:45:44 +00:00
|
|
|
|
2016-02-10 05:02:31 +00:00
|
|
|
# Customize this to specify where The Lounge puts its data.
|
|
|
|
# To link a data container, have it expose /home/lounge/data
|
|
|
|
ENV LOUNGE_HOME /home/lounge/data
|
2015-10-24 19:45:44 +00:00
|
|
|
|
|
|
|
# Expose HTTP
|
2015-09-25 17:34:27 +00:00
|
|
|
EXPOSE 9000
|
2015-10-24 19:45:44 +00:00
|
|
|
|
|
|
|
# Drop root.
|
2016-02-10 05:02:31 +00:00
|
|
|
USER lounge
|
2015-10-24 19:45:44 +00:00
|
|
|
|
|
|
|
# Don't use an entrypoint here. It makes debugging difficult.
|
2016-02-10 05:02:31 +00:00
|
|
|
CMD node index.js --home $LOUNGE_HOME
|