dcbot/build/docker/dcbot-migrations/Dockerfile

19 lines
475 B
Docker
Raw Normal View History

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