diff options
Diffstat (limited to 'Dockerfile.postgres')
-rw-r--r-- | Dockerfile.postgres | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Dockerfile.postgres b/Dockerfile.postgres new file mode 100644 index 0000000..2131f51 --- /dev/null +++ b/Dockerfile.postgres @@ -0,0 +1,12 @@ +FROM postgres:16-alpine + +WORKDIR /dbasik + +COPY migrations/ . + +# Install required dependencies (e.g., curl) +RUN apk add --no-cache curl + +# Download and install the migrate binary +RUN curl -L https://github.com/golang-migrate/migrate/releases/download/v4.17.0/migrate.linux-amd64.tar.gz | tar xvz -C /usr/local/bin/ && chmod +x /usr/local/bin/migrate + |