Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

simple nodejs dockerfile

FROM node:12-alpine
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install --production
COPY . .
CMD ["node", "/app/src/index.js"]
Source by github.com #
 
PREVIOUS NEXT
Tagged: #simple #nodejs #dockerfile
ADD COMMENT
Topic
Name
7+9 =