Skip to content

Commit

Permalink
trying to get migrations running
Browse files Browse the repository at this point in the history
  • Loading branch information
webdevcody committed Jul 24, 2024
1 parent 6e501e4 commit 2cf4b5b
Show file tree
Hide file tree
Showing 4 changed files with 437 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
.git/
.next/
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ ARG NEXT_PUBLIC_POSTHOG_KEY
ARG NEXT_PUBLIC_POSTHOG_HOST

RUN npm run build
RUN npm run db:migrate

FROM base AS runner
WORKDIR /app
Expand All @@ -55,10 +56,6 @@ RUN chown nextjs:nodejs .next
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static

RUN npm i esbuild-register
RUN ls
RUN pwd

USER nextjs

EXPOSE 3000
Expand All @@ -67,4 +64,7 @@ ENV PORT=3000

ARG HOSTNAME

# this is gross
RUN npm i drizzle-orm postgres @t3-oss/env-nextjs zod

CMD npm run db:migrate && node server.js
Loading

0 comments on commit 2cf4b5b

Please sign in to comment.