oneuptime/accounts/Dockerfile
2019-08-02 18:26:16 +05:30

31 lines
404 B
Docker
Executable File

#
# Accounts Dockerfile
#
# Pull base image nodejs image.
FROM node:10
#SET ENV Variables
ENV PRODUCTION=true
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Install app dependencies
COPY package*.json /usr/src/app/
RUN npm install
# Copy app source
COPY . /usr/src/app
# Bundle app source
RUN npm run build
# Expose ports.
# - 3003: accounts
EXPOSE 3003
#Run the app
CMD [ "npm", "start" ]