Added new dockerfile for plugin development

This commit is contained in:
Wyatt Johnson
2017-03-29 13:37:36 -06:00
parent f80f253b98
commit 0dc105405c
5 changed files with 44 additions and 16 deletions
+9 -5
View File
@@ -5,16 +5,20 @@ 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 --production
# Bundle app source
COPY . /usr/src/app
# Install app dependencies and build static assets.
RUN yarn install && \
yarn build && \
yarn install --production && \
yarn cache clean
# Ensure the runtime of the container is in production mode.
ENV NODE_ENV production
CMD ["yarn", "start"]