compose shenannigans

This commit is contained in:
Josh Burman
2019-02-27 14:57:29 -05:00
parent 875bee2348
commit 9d4a09b8bd
4 changed files with 24 additions and 33 deletions

21
.docker-compose/Dockerfile Executable file
View File

@ -0,0 +1,21 @@
FROM node:8
RUN mkdir /app
WORKDIR /app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
RUN npm install
# If you are building your code for production
# RUN npm ci --only=production
# Bundle app source
COPY . /app
ENV PORT 80
EXPOSE 80
CMD [ "npm", "start" ]