typescript-node-express-rea.../Dockerfile

20 lines
347 B
Docker

# Base image
FROM mhart/alpine-node:8.5.0
## Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
## Install app dependencies
COPY package.json /usr/src/app/
RUN npm install
# Bundle app source
COPY . /usr/src/app
## tell the port number the container should expose
EXPOSE 3000
## run the application
CMD ["npm", "run", "dev"]