dcbot/build/docker/dcbot-migrations/Dockerfile

16 lines
371 B
Docker
Raw Normal View History

FROM --platform=$BUILDPLATFORM alpine:3.19
WORKDIR /dcbot
RUN apk --no-cache add curl
ARG TARGETOS
ARG TARGETARCH
RUN curl --silent --show-error --location --fail --location --output /usr/bin/goose "https://github.com/pressly/goose/releases/download/v3.20.0/goose_${TARGETOS}_${TARGETARCH}" && \
chmod +x /usr/bin/goose
COPY ./migrations .
ENTRYPOINT ["goose"]