Open tonykang22 opened 2 years ago
FROM node:12-alpine RUN apk add --no-cache python3 g++ make WORKDIR /app COPY . . RUN yarn install --production ENTRYPOINT ["docker-entrypoint.sh"] CMD ["node"]
$ docker run --entrypoint sh ubuntu:focal $ docker run --entrypoint echo ubuntu:focal hello world
03. 도커 컨테이너 다루기 - 엔트리 포인트와 커멘드
엔트리포인트 (Entrypoint)
커맨드 (Command)
Dockerfile 예시
Docker 명령어 예시