Skip to content

Docker 실행 방법 안내 #14

Description

@Greendeer07

🐳 Docker 실행 방법

이 프로젝트는 Docker 이미지를 통해 로컬 환경 설정 없이 바로 실행할 수 있습니다.
Git Bash에서 실행해주세요!

1️⃣ Docker 이미지 pull

docker pull abanolja/piro-cardgame:latest

2️⃣ Docker 이미지 실행

docker run -p 8000:8000 abanolja/piro-cardgame:latest

실행 후 브라우저에서 아래 주소로 접속하면 됩니다.

👉 http://localhost:8000/

또는

2️⃣-1️⃣ docker-compose로 실행 (yml)

  1. 레포 깃 클론 받아오기
  2. .env.example 에 GOOGLE_LOGIN API key 발급 받아와서 넣기
  3. 다음 명령어 실행하기
docker-compose up

실행 후 브라우저에서 아래 주소로 접속하면 됩니다.

👉 http://localhost:8000/

🐛 트러블슈팅

web-1  | exec /app/entrypoint.sh: no such file or directory
web-1 exited with code 255

entrypoint.sh 파일이 컨테이너 안에 없거나, 있어도 포맷이 이상해서 실행이 안 되는 상황입니다.

🔧 해결 방법: 줄바꿈 포맷 수정

  1. VSCode에서 entrypoint.sh 열기
  2. 우측 하단에서 CRLF → 클릭 → LF 로 변경
  3. 저장 (Ctrl + S)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions