Skip to content

Commit

Permalink
Add Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Freeman committed Aug 23, 2018
1 parent d3bca19 commit 40d9f50
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
18 changes: 18 additions & 0 deletions api/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM node:9

# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

# Install app dependencies
ADD package.json /usr/src/app/
ADD . /usr/src/app
RUN cd /usr/src/app/

# install yarn and set ENV var
RUN yarn install

# Bundle app source
ENV NODE_ENV=production
# Note our config is at build time, so we are building with env params, suboptimal
CMD [ "yarn", "start" ]
18 changes: 18 additions & 0 deletions ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM node:9

# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

# Install app dependencies
ADD package.json /usr/src/app/
ADD . /usr/src/app
RUN cd /usr/src/app/

# install yarn and set ENV var
RUN yarn install

# Bundle app source
ENV NODE_ENV=production
# Note our config is at build time, so we are building with env params, suboptimal
CMD [ "yarn", "start" ]

0 comments on commit 40d9f50

Please sign in to comment.