File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,9 @@ RUN mkdir -p /etc/mysql/conf.d \
53
53
54
54
VOLUME /var/lib/mysql
55
55
56
- COPY docker-entrypoint.sh /entrypoint.sh
57
- ENTRYPOINT ["/entrypoint.sh" ]
56
+ COPY docker-entrypoint.sh /usr/local/bin/
57
+ RUN ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards compat
58
+ ENTRYPOINT ["docker-entrypoint.sh" ]
58
59
59
60
EXPOSE 3306
60
61
CMD ["mysqld" ]
Original file line number Diff line number Diff line change @@ -39,8 +39,9 @@ RUN sed -Ei 's/^(bind-address|log)/#&/' /etc/mysql/my.cnf \
39
39
40
40
VOLUME /var/lib/mysql
41
41
42
- COPY docker-entrypoint.sh /entrypoint.sh
43
- ENTRYPOINT ["/entrypoint.sh" ]
42
+ COPY docker-entrypoint.sh /usr/local/bin/
43
+ RUN ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards compat
44
+ ENTRYPOINT ["docker-entrypoint.sh" ]
44
45
45
46
EXPOSE 3306
46
47
CMD ["mysqld" ]
Original file line number Diff line number Diff line change @@ -39,8 +39,9 @@ RUN sed -Ei 's/^(bind-address|log)/#&/' /etc/mysql/my.cnf \
39
39
40
40
VOLUME /var/lib/mysql
41
41
42
- COPY docker-entrypoint.sh /entrypoint.sh
43
- ENTRYPOINT ["/entrypoint.sh" ]
42
+ COPY docker-entrypoint.sh /usr/local/bin/
43
+ RUN ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards compat
44
+ ENTRYPOINT ["docker-entrypoint.sh" ]
44
45
45
46
EXPOSE 3306
46
47
CMD ["mysqld" ]
You can’t perform that action at this time.
0 commit comments