Files
UpTrader-TEST/Nasa-TEST/Dockerfile
2024-05-08 19:21:13 +03:00

15 lines
490 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Используем базовый образ с MySQL
FROM mysql:latest
# Определение переменных окружения для MySQL
ENV MYSQL_ROOT_PASSWORD=Ax123456
ENV MYSQL_DATABASE=django_db
ENV MYSQL_USER=django_user
ENV MYSQL_PASSWORD=Ax123456
# Копирование sql-скрипта и настройка инициализации БД
COPY init.sql /docker-entrypoint-initdb.d/
# Определяем порт для доступа к MySQL
EXPOSE 3306