Dockerfile
FROM python:3.9
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
WORKDIR /Users/Vitaliy/PycharmProjects/Funpay/Funpay/
COPY . /Users/Vitaliy/PycharmProjects/
EXPOSE 8000
CMD ['python', 'manage.py', 'migrate']
CMD ['python', 'manage.py', 'runserver', '0.0.0.0:8000']
settings.py
CHANNEL_LAYERS = {
'default': {
'BACKEND': 'channels_redis.core.RedisChannelLayer',
'CONFIG': {
"hosts": [('127.0.0.1', 6379)],
},
},
}
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}
Ошибка при запуске image:
bin/sh: 1: [python,: not found