Files
talk/Dockerfile
T
2016-11-07 16:35:46 -05:00

26 lines
416 B
Docker

FROM node:7
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Setup the environment
ENV PATH /usr/src/app/bin:$PATH
ENV TALK_PORT 5000
EXPOSE 5000
# Install app dependencies
COPY package.json /usr/src/app/
RUN npm install
# Bundle app source
COPY . /usr/src/app
# Compile static assets
RUN npm run build
# Prune development dependancies
RUN npm prune --production
CMD [ "npm", "start" ]