-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove
strg
, use railway volumes
for pocketbase
- Loading branch information
Showing
3 changed files
with
11 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.