Adding new deploy configuration

This commit is contained in:
Matias committed 2019-04-28 11:44:03 -03:00
1 parent 6b4d5750a9
commit 5fd199a93c
8 files changed
+19180 -5

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
FROM mhart/alpine-node:12
# Directory where the service will be installed
ARG API_DIR=/usr/src/users-api
# Prepare required directories
RUN mkdir -p ${API_DIR}
# Use app directory as current workdir
WORKDIR ${API_DIR}
# Copy package.json to workdir
COPY package*.json ${API_DIR}/
# Install dependencies
RUN npm install --production
# Copy application code
COPY . ${API_DIR}
# Expose Port
EXPOSE $PORT