Add Migrations
Some checks failed
Deploy Backend to Docker / deploy (push) Failing after 3m2s
Deploy Backend to Docker / deploy-portainer (push) Has been skipped

This commit is contained in:
2025-12-03 21:44:52 -05:00
parent 3f835bfcea
commit 1579f369c2
4 changed files with 28 additions and 2 deletions

View File

@@ -42,8 +42,12 @@ COPY . .
# Build TypeScript
RUN npm run build
# Copy entrypoint script
COPY docker-entrypoint.sh /app/
RUN chmod +x /app/docker-entrypoint.sh
# Expose port
EXPOSE 3000
# Start application (migrations will be run via docker-compose command)
CMD ["npm", "start"]
# Start application with migrations
ENTRYPOINT ["/app/docker-entrypoint.sh"]