Skip to content

Instantly share code, notes, and snippets.

@jake-walker
Created April 24, 2018 15:19
Show Gist options
  • Save jake-walker/c978d318f14072cc14a6a925fa8faf1c to your computer and use it in GitHub Desktop.
Save jake-walker/c978d318f14072cc14a6a925fa8faf1c to your computer and use it in GitHub Desktop.
The Lounge Pre-release Dockerfile
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