Feat: Add migration mechanism & first migration
This commit is contained in:
parent
f05bec6f17
commit
8bdbf5b0f5
25 changed files with 562 additions and 1366 deletions
|
@ -7,7 +7,7 @@ RUN go mod download
|
|||
|
||||
# Copy the source code. Note the slash at the end, as explained in
|
||||
# https://docs.docker.com/engine/reference/builder/#copy
|
||||
COPY backend/*.go ./
|
||||
COPY backend/ ./
|
||||
|
||||
# Build
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build .
|
||||
|
@ -39,7 +39,6 @@ ENV GO_ENV=production
|
|||
COPY start_server.sh .
|
||||
COPY --from=prerelease /usr/src/app/build .
|
||||
COPY --from=gobuild /usr/src/app/brawlset_server .
|
||||
COPY backend/pb_migrations ./pb_migrations
|
||||
|
||||
# run the app
|
||||
EXPOSE 8090
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue