Add application file
Browse files- Dockerfile +1 -12
Dockerfile
CHANGED
@@ -1,22 +1,11 @@
|
|
1 |
-
# Use the official MySQL 5.7 image as the base image
|
2 |
FROM mysql:5.7
|
3 |
-
|
4 |
-
# Add a custom SQL script to initialize the database
|
5 |
-
# COPY init.sql /docker-entrypoint-initdb.d/
|
6 |
-
|
7 |
-
# Add custom MySQL configuration
|
8 |
COPY my.cnf /etc/mysql/conf.d/
|
9 |
-
|
10 |
-
|
11 |
-
# Set environment variables (if needed)
|
12 |
ENV MYSQL_ROOT_PASSWORD=rootpassword
|
13 |
ENV MYSQL_DATABASE=mydatabase
|
14 |
ENV MYSQL_USER=myuser
|
15 |
ENV MYSQL_PASSWORD=mypassword
|
16 |
-
|
17 |
-
|
18 |
RUN mysqld
|
19 |
-
|
20 |
FROM php:7.4-fpm
|
21 |
|
22 |
# Set environment variables
|
|
|
|
|
1 |
FROM mysql:5.7
|
|
|
|
|
|
|
|
|
|
|
2 |
COPY my.cnf /etc/mysql/conf.d/
|
|
|
|
|
|
|
3 |
ENV MYSQL_ROOT_PASSWORD=rootpassword
|
4 |
ENV MYSQL_DATABASE=mydatabase
|
5 |
ENV MYSQL_USER=myuser
|
6 |
ENV MYSQL_PASSWORD=mypassword
|
|
|
|
|
7 |
RUN mysqld
|
8 |
+
RUN ls
|
9 |
FROM php:7.4-fpm
|
10 |
|
11 |
# Set environment variables
|