From ef148938f11f0ce72444885c284bc7a043afaea8 Mon Sep 17 00:00:00 2001 From: Nulo Date: Thu, 28 Sep 2023 14:30:48 +0000 Subject: [PATCH] init --- .woodpecker.yml | 14 ++++++++++++++ Dockerfile | 21 +++++++++++++++++++++ readme.md | 3 +++ 3 files changed, 38 insertions(+) create mode 100644 .woodpecker.yml create mode 100644 Dockerfile create mode 100644 readme.md diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..66dc7cc --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,14 @@ +pipeline: + publish: + image: "docker.io/woodpeckerci/plugin-docker-buildx" + settings: + registry: "https://gitea.nulo.in" + username: "sutty-ci" + repo: "gitea.nulo.in/sutty/pocketbase" + tags: + - "latest" + secrets: + - "DOCKER_PASSWORD" + when: + branch: "antifascista" + event: "push" diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a6dde9a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +ARG ALPINE_VERSION=3.18.3 +FROM alpine:${ALPINE_VERSION} AS build +MAINTAINER "nulo " +ARG PB_VERSION=0.18.8 + +RUN apk add --no-cache \ + unzip \ + ca-certificates +ADD https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/pocketbase_${PB_VERSION}_linux_amd64.zip /tmp/pb.zip +RUN unzip /tmp/pb.zip -d /pb/ + +FROM gitea.nulo.in/sutty/sutty:${ALPINE_VERSION} +MAINTAINER "nulo " + +COPY --from=build /pb/pocketbase /usr/local/bin/pocketbase + +WORKDIR /pb +VOLUME /pb/pb_data +VOLUME /pb/pb_migrations +CMD ["/usr/local/bin/pocketbase", "serve", "--http=0.0.0.0:8080"] +EXPOSE 8080 \ No newline at end of file diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..90595f7 --- /dev/null +++ b/readme.md @@ -0,0 +1,3 @@ +# sutty/containers-pocketbase + +A small container with the standalone [PocketBase](https://github.com/pocketbase/pocketbase) binary.