Skip to content

DOCKER #165

Description

@mountain-kangkang
  1. Dockerfile에서:
  • POETRY_VIRTUALENVS_CREATE=false로 가상환경 생성을 비활성화
  • PATH에 Poetry bin 경로 추가
  • poetry show django로 Django 설치 확인
  1. docker-compose.yml에서:
  • volumes에서 전체 프로젝트 디렉토리를 마운트 (.:/app)
  • gunicorn 명령에 --chdir /app 추가로 작업 디렉토리 명시
  • PYTHONPATH=/app 환경변수 설정

가상환경 관리의 복잡성을 줄이면서도 Django가 정상적으로 실행

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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