Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

sample docker for node js

# syntax=docker/dockerfile:1
FROM node:12-alpine
RUN apk add --no-cache python2 g++ make
WORKDIR /app
COPY . .
RUN yarn install --production
CMD ["node", "src/index.js"]
EXPOSE 3000
Source by docs.docker.com #
 
PREVIOUS NEXT
Tagged: #sample #docker #node #js
ADD COMMENT
Topic
Name
8+5 =