나를 위한 기록들

How to Install Puppeteer And Nodejs in Docker 본문

Docker

How to Install Puppeteer And Nodejs in Docker

lyasee 2019. 9. 15. 13:01

DockerFile

FROM node:10.13

RUN apt-get update

# for https
RUN apt-get install -yyq ca-certificates
# install libraries
RUN apt-get install -yyq libappindicator1 libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6
# tools
RUN apt-get install -yyq gconf-service lsb-release wget xdg-utils
# and fonts
RUN apt-get install -yyq fonts-liberation

ENV NODE_ENV production
WORKDIR /usr/src/app
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
RUN npm install --production --silent && mv node_modules ../

COPY . .
EXPOSE 3000

CMD ["npm", "start"]

'Docker' 카테고리의 다른 글

Docker에 Nexus 설치하기  (0) 2018.10.07
Unable to find image 'xxx' locally  (0) 2018.10.07
Docker에 Confluence 설치하기  (0) 2018.09.16
Docker에 Jira 설치하기  (0) 2018.09.16
Docker에 postgreSQL 설치하기  (0) 2018.09.16
Comments