Docker containers running sample nodejs app among others tools for learning purposes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

24 lines
522 B

FROM node
WORKDIR /app
# Copying npm config file setting npm repository location.
COPY .npmrc .npmrc
# If you add the package.json first and run npm install later,
# Docker won’t have to install the dependencies again if you
# change the package.json file.
# This results from the way the Docker image is being built (layers and cache),
# and this is what we should do:
COPY package.json /app
RUN npm install
COPY . /app
# ENV mongousr=myTester
# ENV mongopwd=test
RUN sh check-env.sh
CMD node app.js
EXPOSE 3001