Repackage Team Module
This commit is contained in:
commit
a1b4bbe18c
203 files changed
+29564
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user