This Docker image is used to run service artefacts from a multistage docker build.
The image expects your previous build stage to have produced a build/service
executable artefact which will be run by default.
FROM lushdigital/alpine-golang:latest
FROM lushdigital/alpine-service:latest
Some projects require database migrations to be copied over to the docker artefact to be executed at runtime. To make this process easier, you can base your docker image on the the migrations
tag.
FROM lushdigital/alpine-golang:latest
FROM lushdigital/alpine-service:migrations
The image build will attempt to copy any database migrations that exist in your repository from service/database/migrations
and provide a MIGRATIONS_URL
environment variable with the file path in the container.
If you want to override the default MIGRATIONS_URL
you can set it in your project dockerfile.
ENV MIGRATIONS_URL="ftp://my.migration.service.com/migrations"