changes bootstrap mechanism

This commit is contained in:
Christian Beutel
2024-03-13 00:28:11 +01:00
parent 2e3c3abbe4
commit eecd78aba1
12 changed files with 232 additions and 205 deletions

View File

@@ -6,14 +6,13 @@ WORKDIR /
COPY go.mod ./
COPY go.sum ./
COPY migrations ./migrations
RUN tar -xvf migrations/initial_data/cities500.tar.gz -C migrations/initial_data
RUN go mod download
COPY *.go ./
RUN go build -o /pocketbase
RUN /pocketbase migrate
RUN /pocketbase seed
ENV MEILI_URL=http://localhost:7700
ENV MEILI_MASTER_KEY=