This commit is contained in:
commit
bbc76f860e
3 changed files with 38 additions and 0 deletions
14
.woodpecker.yml
Normal file
14
.woodpecker.yml
Normal 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
21
Dockerfile
Normal 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
3
readme.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# sutty/containers-pocketbase
|
||||||
|
|
||||||
|
A small container with the standalone [PocketBase](https://github.com/pocketbase/pocketbase) binary.
|
Loading…
Reference in a new issue