pocketbase / Dockerfile
nexacore's picture
Update Dockerfile
5b2e1d9 verified
raw
history blame contribute delete
572 Bytes
FROM alpine:latest
WORKDIR /app
# Install tools
RUN apk add --no-cache unzip curl
# Download full release with embedded admin UI
RUN curl -L -o pb.zip https://github.com/pocketbase/pocketbase/releases/download/v0.22.10/pocketbase_0.22.10_linux_amd64.zip && \
unzip pb.zip && \
chmod +x pocketbase && \
rm pb.zip
# Create data directory with proper permissions
RUN mkdir -p /app/pb_data && chmod -R 777 /app/pb_data
EXPOSE 7860
# Start PocketBase with data directory specified
CMD ["./pocketbase", "serve", "--http=0.0.0.0:7860", "--dir", "/app/pb_data"]