2024-10-08 11:01:47 +00:00
|
|
|
#pulling from github
|
|
|
|
# FROM alpine/git:v2.30.1 AS code
|
|
|
|
#ARG BUILD_ID
|
|
|
|
#RUN echo $BUILD_ID
|
|
|
|
#LABEL stage=builder
|
|
|
|
#LABEL build_id=$BUILD_ID
|
|
|
|
#RUN mkdir repo
|
|
|
|
#WORKDIR /repo
|
|
|
|
#RUN git clone http://risadmin:admin1234@try.gitea.io/risadmin/a_madhurtest1.git
|
|
|
|
#******** Stage 2 - Mysql Build*********
|
|
|
|
FROM mysql:8.0
|
|
|
|
ENV MYSQL_ROOT_PASSWORD root
|
|
|
|
COPY conf.d /etc/mysql/conf.d
|
|
|
|
COPY *.sql /docker-entrypoint-initdb.d/
|
2024-10-08 12:11:12 +00:00
|
|
|
#COPY --from=code /repo//data/24997_1728389441917/sureops_deploy/pro103ab/pro103ab-db-d/authsec_mysql/mysql/wf_table/backend/src/main/resources/ .
|
2024-10-08 11:01:47 +00:00
|
|
|
VOLUME /var/lib/mysql
|
|
|
|
EXPOSE 3306
|
|
|
|
CMD ["mysqld"]
|