chore [P-01]: уменьшение фронта
This commit is contained in:
1 parent
10923a6600
commit
9f1423870d
7 files changed
+50
-65
No files matched your search
+3
-15
@@ -1,4 +1,4 @@
|
||||
FROM python:3.10.13-slim
|
||||
FROM python:3.10.13-slim
|
||||
|
||||
WORKDIR /back
|
||||
|
||||
@@ -22,20 +22,8 @@ RUN pip install --no-cache-dir -r r.txt
|
||||
|
||||
|
||||
# Копируем все файлы проекта в контейнер
|
||||
COPY ${SOURCE_DIR} .
|
||||
# COPY sys/wait-for-it.sh /usr/local/bin/wait-for-it
|
||||
# RUN dos2unix /usr/local/bin/wait-for-it
|
||||
# Выполняем миграции (при необходимости)
|
||||
# RUN python manage.py makemigrations
|
||||
# RUN python manage.py migrate
|
||||
# RUN chmod +x /usr/local/bin/wait-for-it
|
||||
# Открываем порт, на котором будет работать приложение
|
||||
# COPY ${SOURCE_DIR} .
|
||||
|
||||
EXPOSE 8000
|
||||
COPY docker/entries/backend-entrypoint.sh /script/backend-entrypoint.sh
|
||||
RUN dos2unix /script/backend-entrypoint.sh && chmod 777 /script/backend-entrypoint.sh
|
||||
# Команда для запуска приложения
|
||||
# "wait-for-it", "db:3306", "--",
|
||||
# CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|
||||
# CMD ["sh", "-c", "wait-for-it db:3306 -- ./env/bin/python manage.py runserver 0.0.0.0:8000"]
|
||||
# CMD ["tail", "-f", "/dev/null"]
|
||||
# CMD ["sh", "-c","wait-for-it db:3306", "--", "python", "manage.py", "runserver", "0.0.0.0:8000"]
|
||||
Reference in new issue
Block a user