dcbot/build/docker/dcbot-migrations/Dockerfile
Dawid Wysokiński ab572ab936
Some checks failed
ci/woodpecker/push/govulncheck Pipeline failed
ci/woodpecker/push/test Pipeline failed
chore(migrations): update prod Dockerfile
2024-05-12 08:37:23 +02:00

19 lines
503 B
Docker

FROM --platform=$BUILDPLATFORM 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"]