Skip to content

Commit

Permalink
chore: try with sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
awinogradov committed Aug 10, 2023
1 parent dbc1d8f commit 43a7109
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ RUN npm run build
FROM node:18.12.0-alpine AS runner

WORKDIR /app
COPY --from=build /app/.env ./.env
COPY --from=build /app/.env ./
COPY --from=build /app/app_run.ci.sh ./
COPY --from=build /app/package*.json ./
COPY --from=build /app/prisma ./prisma
COPY --from=build /app/public ./public
Expand All @@ -25,4 +26,4 @@ RUN npx prisma generate

EXPOSE 3000

CMD ["node_modules/.bin/concurrently", "node background/worker/index.js", "node server.js"]
CMD sh ./app_run.ci.sh
3 changes: 3 additions & 0 deletions app_run.ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
npx prisma migrate dev
node_modules/.bin/concurrently 'node background/worker/index.js' 'node server.js'

0 comments on commit 43a7109

Please sign in to comment.