Skip to content

Instantly share code, notes, and snippets.

@aroder
Last active December 17, 2017 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aroder/9fa65612ed34ba23825e93a59c30a734 to your computer and use it in GitHub Desktop.
Save aroder/9fa65612ed34ba23825e93a59c30a734 to your computer and use it in GitHub Desktop.
botpress Dockerfile
# comes with node and npm already installed
FROM node:carbon-alpine
RUN mkdir -p /usr/src/app
RUN chown node:node /usr/src/app
WORKDIR /usr/src/app
USER node
# ensures both package.json and package-lock.json are copied
COPY package*.json ./
RUN npm install --quiet --production --no-progress && \
npm cache clean --force
COPY . .
EXPOSE 3000
CMD ["node_modules/botpress/bin/botpress", "start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment