Files
talk/Dockerfile
T
2017-03-20 07:36:06 -07:00

24 lines
384 B
Docker

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