Dockerfile
FROM golang:alpine
MAINTAINER [email protected]
RUN apk update && apk add wget
RUN wget https://github.com/actions/migrate/releases/download/2019-08-06%4020-47/migrate-actions-linux.tar
RUN tar -xvf migrate-actions-linux.tar
COPY ./entrypoint.sh /
ENTRYPOINT [ "/entrypoint.sh" ]
entrypoint.sh
#!/bin/sh
cp /migrate-actions /migrate/
cd /migrate
. ./migrate-actions
rm migrate-actions