Skip to content

Instantly share code, notes, and snippets.

@dhsathiya
Last active August 23, 2019 03:47
Show Gist options
  • Save dhsathiya/987faca429dd4319bbf3c25272c6272d to your computer and use it in GitHub Desktop.
Save dhsathiya/987faca429dd4319bbf3c25272c6272d to your computer and use it in GitHub Desktop.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment