Files
Superalgos/Deprecated-Code/MasterApp/server/Dockerfile
T
2020-11-20 20:28:04 +01:00

20 lines
358 B
Docker

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