Repackage Team Module

This commit is contained in:
Barry Low committed 2018-09-01 11:04:04 -07:00
commit a1b4bbe18c
203 files changed
+29564

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
FROM mhart/alpine-node:8
ARG PORT=4000
ARG APP_PATH=/usr/src/app
RUN mkdir -p /usr && \
mkdir -p $APP_PATH && \
mkdir -p $APP_PATH /node_modules
# Use app directory as current workdir
WORKDIR $APP_PATH
# Copy package.json to workdir
COPY package.json .
# Install dependencies
RUN npm install
# Copy application code
COPY . .
RUN NODE_ENV=production npm run start
# Expose Port
EXPOSE $PORT