commit 23482b3fc80fee4620d416ce34e46ba199c4cbe4 Author: Nulo Date: Thu Sep 28 14:30:48 2023 +0000 init diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..97a70ae --- /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" + 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.