Skip to content

Commit

Permalink
fix(dockerfile): dont run generate and migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
tfkhdyt committed Sep 27, 2023
1 parent 65be2b3 commit 6eac208
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM node:lts-alpine3.18
WORKDIR /app
COPY . .
RUN npm i
RUN npm run generate
RUN npx tsx ./src/db/postgres/migrate.ts
RUN rm -rf node_modules
RUN npm ci --omit=dev
# RUN npm i
# RUN npm run generate
# RUN npx tsx ./src/db/postgres/migrate.ts
# RUN rm -rf node_modules
RUN npm i --omit=dev

ENTRYPOINT [ "npx", "tsx", "./src/main.ts" ]

0 comments on commit 6eac208

Please sign in to comment.