Skip to content

Commit

Permalink
resolve new format in container
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherJMiller committed Dec 19, 2023
1 parent d50adc2 commit 2a1bdd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ ADD yarn.lock .
ADD api/package.json .
ADD api/migrate.sh .
ADD api/migration.config.mjs .
ADD api/migrations .

ENV NODE_ENV production

RUN yarn install && yarn cache clean

COPY --from=builder /build/api/dist /app

CMD [ "node", "main.js" ]
CMD [ "node", "src/main.js" ]
2 changes: 1 addition & 1 deletion api/migrate.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env sh

yarn typeorm-ts-node-esm migration:run -- -d migration.config.mjs
yarn typeorm migration:run -- -d migration.config.mjs

0 comments on commit 2a1bdd5

Please sign in to comment.