[PIE-1] Initialise Project (!2)

Init Svelte project, Pocketbase backend, API connection, and mostly Dockerised
Co-authored-by: june <self@breadone.net>
Co-committed-by: june <self@breadone.net>
This commit was merged in pull request #2.
This commit is contained in:
2025-08-12 12:27:42 +12:00
committed by June
parent 6516da297c
commit e6344502fd
26 changed files with 3400 additions and 1 deletions

26
api/Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
FROM alpine:latest
ARG PB_VERSION=0.29.2
WORKDIR /pb
RUN apk add --no-cache \
unzip \
curl \
ca-certificates \
bash
# download and unzip PocketBase
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/
# copy entrypoint
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
VOLUME [ "/pb/pb_data", "/pb/pb_migrations", "/pb/pb_hooks" ]
EXPOSE 8080
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["serve", "--http=0.0.0.0:8080"]