This commit is contained in:
@@ -17,6 +17,8 @@ WORKDIR /app
|
||||
RUN npm i -g pnpm
|
||||
|
||||
COPY --from=builder /app/dist ./dist
|
||||
COPY --from=builder /app/drizzle ./drizzle
|
||||
COPY --from=builder /app/scripts ./scripts
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
|
||||
RUN pnpm install --prod
|
||||
@@ -28,4 +30,4 @@ ENV PORT=4321
|
||||
ENV DATABASE_URL=/app/data/chronus.db
|
||||
EXPOSE 4321
|
||||
|
||||
CMD ["node", "./dist/server/entry.mjs"]
|
||||
CMD ["sh", "-c", "pnpm run migrate && node ./dist/server/entry.mjs"]
|
||||
|
||||
Reference in New Issue
Block a user