Skip to content

Instantly share code, notes, and snippets.

@subwiz
Last active July 26, 2017 08:57
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 subwiz/34177d1ce43c9f3127dc5cf4925de6f6 to your computer and use it in GitHub Desktop.
Save subwiz/34177d1ce43c9f3127dc5cf4925de6f6 to your computer and use it in GitHub Desktop.
FROM debian
RUN mkdir -p /app/conf
# Assumption: Go generated project binary `prjbinary`
COPY prjbinary /app/prjbinary
COPY docker/conf/db.toml /app/conf/db.toml
# entrypoint.sh executes /app/prjbinary
# Before execution, based on MYENV, copies configs from vault to /app/conf/
COPY docker/entrypoint.sh /app/entrypoint.sh
WORKDIR /app
ENTRYPOINT ["/app/entrypoint.sh"]
FROM subwiz/dbmigrate:3.0.1
COPY db/migrations/*.sql db/migrations/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment