2024-04-30 08:22:55 +00:00
|
|
|
FROM --platform=$BUILDPLATFORM alpine:3.19
|
2023-06-09 06:32:46 +00:00
|
|
|
|
|
|
|
WORKDIR /dcbot
|
|
|
|
|
|
|
|
RUN apk --no-cache add curl
|
|
|
|
|
2024-05-12 06:23:36 +00:00
|
|
|
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
|
2023-06-09 06:32:46 +00:00
|
|
|
|
|
|
|
COPY ./migrations .
|
|
|
|
|
|
|
|
ENTRYPOINT ["goose"]
|