Skip to content

Instantly share code, notes, and snippets.

@maishsk
Created January 13, 2019 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maishsk/383339b9068f711ba00a4d8161655015 to your computer and use it in GitHub Desktop.
Save maishsk/383339b9068f711ba00a4d8161655015 to your computer and use it in GitHub Desktop.
Dockerfile
# Derived from official mysql image (our base image)
FROM mysql:5.6
EXPOSE 3306
# Add a database
ENV MYSQL_DATABASE maishsk
# Add the content of the sql-scripts/ directory to your image
# All scripts in docker-entrypoint-initdb.d/ are automatically
# executed during container startup
COPY ./sql-scripts/ /docker-entrypoint-initdb.d/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment