Created
April 24, 2018 15:19
-
-
Save jake-walker/c978d318f14072cc14a6a925fa8faf1c to your computer and use it in GitHub Desktop.
The Lounge Pre-release Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:6 | |
ENV NODE_ENV production | |
ENV THELOUNGE_HOME "/home/lounge/data" | |
VOLUME "${THELOUNGE_HOME}" | |
# Expose HTTP. | |
ENV PORT 9000 | |
EXPOSE ${PORT} | |
ENTRYPOINT ["docker-entrypoint.sh"] | |
CMD ["thelounge", "start"] | |
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh | |
# Install common TTY text editors to allow editing files from within the container | |
RUN apt-get update && \ | |
apt-get install -y vim nano && \ | |
apt-get clean && \ | |
rm -rf /var/lib/apt/lists/* | |
# Install thelounge. | |
ARG THELOUNGE_VERSION=next | |
RUN npm install -g thelounge@${THELOUNGE_VERSION} && \ | |
npm cache clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment