Skip to content

Commit

Permalink
still testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Theezr committed Aug 14, 2024
1 parent 29bad33 commit 87b9e52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ COPY package.json .
COPY package-lock.json .
RUN npm install
COPY . .
RUN npx prisma generate
RUN npm run build

FROM node:18-slim
Expand All @@ -25,4 +24,4 @@ RUN npm install --omit=dev
COPY --chown=node:node --from=build /usr/src/app/node_modules/.prisma/client ./node_modules/.prisma/client

## TODO: hacky way to make sure the db is up before running the migration
CMD ["sh", "-c", "sleep 10; exec dumb-init npm run start:migrate:prod"]
CMD ["sh", "-c", "sleep 10; exec npm run start:migrate:prod"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ sunset arctic describe battle negative grace fame pottery spin warm wasp arctic

docker run --rm --name pg -p 5432:5432 -e POSTGRES_PASSWORD=welcome postgres:16

docker run -d -p 9901:9901 -e DATABASE_URL="postgres://postgres:welcome@localhost/postgres" gateway-test
docker run -d -p 9901:9901 -e -e DATABASE_URL="postgres://postgres:welcome@host.docker.internal/postgres" gateway-test

0 comments on commit 87b9e52

Please sign in to comment.