``refactor Update docker-compose configurations, adjust PocketBase Dockerfile, modify seed scripts to use 'state' instead of 'status', and fix paths in development scripts
``
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM alpine:3 as downloader
|
||||
FROM alpine:3 AS downloader
|
||||
|
||||
ARG TARGETOS
|
||||
ARG TARGETARCH
|
||||
@@ -7,24 +7,28 @@ ARG VERSION
|
||||
|
||||
ENV BUILDX_ARCH="${TARGETOS:-linux}_${TARGETARCH:-amd64}${TARGETVARIANT}"
|
||||
|
||||
RUN wget https://github.com/pocketbase/pocketbase/releases/download/v${VERSION}/pocketbase_${VERSION}_${BUILDX_ARCH}.zip \
|
||||
&& unzip pocketbase_${VERSION}_${BUILDX_ARCH}.zip \
|
||||
&& chmod +x /pocketbase
|
||||
RUN wget https://github.com/pocketbase/pocketbase/releases/download/v${VERSION}/pocketbase_${VERSION}_${BUILDX_ARCH}.zip && \
|
||||
unzip pocketbase_${VERSION}_${BUILDX_ARCH}.zip && \
|
||||
chmod +x /pocketbase
|
||||
|
||||
FROM alpine:3
|
||||
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
|
||||
RUN apk update && \
|
||||
apk add ca-certificates && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
EXPOSE 8090
|
||||
|
||||
COPY --from=downloader /pocketbase /usr/local/bin/pocketbase
|
||||
|
||||
ENTRYPOINT [
|
||||
"/usr/local/bin/pocketbase", "serve", "--http=0.0.0.0:8090", "--dir=/pb_data", "--publicDir=/pb_public", "--hooksDir=/pb_hooks"]
|
||||
|
||||
|
||||
# ---
|
||||
RUN apk add sqlite entr
|
||||
# RUN apk add sqlite entr
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
# ENTRYPOINT ["/entrypoint.sh"]
|
||||
# # COPY entrypoint.sh /entrypoint.sh
|
||||
# # ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
RUN apk add nodejs yarn
|
||||
RUN yarn global add nodemon
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/pocketbase", "serve", "--http=0.0.0.0:8090", "--dir=/pb_data", "--publicDir=/pb_public", "--hooksDir=/pb_hooks"]
|
||||
# RUN apk add nodejs yarn
|
||||
# RUN yarn global add nodemon
|
||||
|
@@ -143,7 +143,7 @@ module.exports = ($app) => {
|
||||
record.set("timezone", customer[8]);
|
||||
record.set("language", customer[9]);
|
||||
record.set("currency", customer[10]);
|
||||
record.set("status", customer[11]);
|
||||
record.set("state", customer[11]);
|
||||
|
||||
$app.save(record);
|
||||
}
|
||||
|
@@ -143,7 +143,7 @@ module.exports = ($app) => {
|
||||
record.set("timezone", student[8]);
|
||||
record.set("language", student[9]);
|
||||
record.set("currency", student[10]);
|
||||
record.set("status", student[11]);
|
||||
record.set("state", student[11]);
|
||||
|
||||
$app.save(record);
|
||||
}
|
||||
|
Reference in New Issue
Block a user