dcbot/build/docker/dcbot-migrations/Dockerfile
Dawid Wysokiński c569463ac6
All checks were successful
ci/woodpecker/push/govulncheck Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/tag/docker Pipeline was successful
ci/woodpecker/tag/deployment Pipeline was successful
ci/woodpecker/cron/govulncheck Pipeline was successful
chore(migrations): update prod Dockerfile
2024-05-12 09:43:26 +02:00

19 lines
475 B
Docker

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"]