add:db migration to dockerbuild and edit origin url

This commit is contained in:
2025-12-16 14:18:30 +01:00
parent 0c1c9d202d
commit deebeb056f
7 changed files with 47 additions and 6 deletions

View File

@@ -54,6 +54,14 @@ RUN npm ci --omit=dev
# Copy built app from builder
COPY --from=builder /app/build ./build
# Copy drizzle migrations and config
COPY --from=builder /app/drizzle ./drizzle
COPY --from=builder /app/drizzle.config.ts ./drizzle.config.ts
# Copy entrypoint script
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
# Expose port
EXPOSE 3000
@@ -61,5 +69,8 @@ EXPOSE 3000
ENV NODE_ENV=production
ENV ORIGIN=http://localhost:3000
# Use entrypoint script
ENTRYPOINT ["docker-entrypoint.sh"]
# Start the app
CMD ["node", "build"]