aboutsummaryrefslogtreecommitdiff
path: root/srcs/mysql/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'srcs/mysql/Dockerfile')
-rw-r--r--srcs/mysql/Dockerfile28
1 files changed, 13 insertions, 15 deletions
diff --git a/srcs/mysql/Dockerfile b/srcs/mysql/Dockerfile
index 448080e..5f36a6c 100644
--- a/srcs/mysql/Dockerfile
+++ b/srcs/mysql/Dockerfile
@@ -1,16 +1,14 @@
-FROM alpine:latest
-#init
-RUN apk -U upgrade
-#install nginx/php
-RUN apk add vim mysql mysql-client
-# RUN apk add telegraf --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ --allow-untrusted --no-cache
-#Expose PORT
+FROM alpine
+
+RUN apk update && \
+ apk upgrade && \
+ apk add mysql mysql-client --no-cache
+
+
+COPY entrypoint.sh /entrypoint.sh
+RUN chmod +x /entrypoint.sh
+# COPY my.cnf /etc/my.cnf.d/ft_services.cnf
+
EXPOSE 3306
-COPY my.cnf /etc/
-COPY start.sh .
-#COPY wordpress .
-# COPY init.sql .
-#telegraf
-# RUN mkdir -p /etc/telegraf
-# COPY telegraf.conf /etc/telegraf/telegraf.conf
-CMD /bin/sh /start.sh
+
+CMD ["/entrypoint.sh"]