init
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Cat /dev/Nulo 2023-09-28 14:30:48 +00:00
commit ef148938f1
3 changed files with 38 additions and 0 deletions

14
.woodpecker.yml Normal file
View file

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

21
Dockerfile Normal file
View file

@ -0,0 +1,21 @@
ARG ALPINE_VERSION=3.18.3
FROM alpine:${ALPINE_VERSION} AS build
MAINTAINER "nulo <nulo@sutty.nl>"
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 <nulo@sutty.nl>"
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

3
readme.md Normal file
View file

@ -0,0 +1,3 @@
# sutty/containers-pocketbase
A small container with the standalone [PocketBase](https://github.com/pocketbase/pocketbase) binary.