Skip to content

Commit

Permalink
remove strg, use railway volumes for pocketbase
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx authored Jun 24, 2023
1 parent d966a16 commit 94e2fea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 20 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,5 @@ jobs:

- name: Build and Push
run: |
docker build -t botwayorg/pb-core:latest --file Dockerfile.core .
docker push botwayorg/pb-core:latest
docker build -t botwayorg/pocketbase:latest .
docker push botwayorg/pocketbase:latest
19 changes: 11 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
FROM botwayorg/pb-core:latest AS download
FROM alpine:latest
FROM alpine:latest as download

RUN apk add curl

ENV PKGS="git git-lfs npm build-base ca-certificates"
ENV CMD="/usr/local/bin/pocketbase serve --http=0.0.0.0:8090 --dir=/root/pocketbase"
ENV SG_DIR="/root/pocketbase"
RUN curl -s https://get-latest.deno.dev/pocketbase/pocketbase?no-v=true >> tag.txt

ARG GITHUB_TOKEN
RUN wget https://github.com/pocketbase/pocketbase/releases/download/v$(cat tag.txt)/pocketbase_$(cat tag.txt)_linux_amd64.zip \
&& unzip pocketbase_$(cat tag.txt)_linux_amd64.zip \
&& chmod +x /pocketbase

FROM alpine:latest

RUN apk update && apk add --update $PKGS && rm -rf /var/cache/apk/* && npm i -g npm@latest @botway/strg@latest
RUN apk update && apk add --update git build-base ca-certificates && rm -rf /var/cache/apk/*

COPY --from=download /pocketbase /usr/local/bin/pocketbase

EXPOSE 8090

ENTRYPOINT strg --check && strg --sync
ENTRYPOINT /usr/local/bin/pocketbase serve --http=0.0.0.0:8090 --dir=/root/pocketbase
9 changes: 0 additions & 9 deletions Dockerfile.core

This file was deleted.

0 comments on commit 94e2fea

Please sign in to comment.